FontExt

Trait FontExt 

Source
pub trait FontExt: IsA<Font> + 'static {
    // Provided methods
    fn describe(&self) -> FontDescription { ... }
    fn describe_with_absolute_size(&self) -> FontDescription { ... }
    fn coverage(&self, language: &Language) -> Coverage { ... }
    fn face(&self) -> Option<FontFace> { ... }
    fn font_map(&self) -> Option<FontMap> { ... }
    fn glyph_extents(&self, glyph: Glyph) -> (Rectangle, Rectangle) { ... }
    fn languages(&self) -> Vec<Language> { ... }
    fn metrics(&self, language: Option<&Language>) -> FontMetrics { ... }
    fn has_char(&self, wc: char) -> bool { ... }
    fn serialize(&self) -> Bytes { ... }
}

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<O: IsA<Font>> FontExt for O