Trait pango::prelude::FontExt

source ·
pub trait FontExt: 'static {
    // Required methods
    fn describe(&self) -> Option<FontDescription>;
    fn describe_with_absolute_size(&self) -> Option<FontDescription>;
    fn coverage(&self, language: &Language) -> Option<Coverage>;
    fn face(&self) -> Option<FontFace>;
    fn font_map(&self) -> Option<FontMap>;
    fn glyph_extents(&self, glyph: Glyph) -> (Rectangle, Rectangle);
    fn metrics(&self, language: Option<&Language>) -> Option<FontMetrics>;
    fn has_char(&self, wc: char) -> bool;
    fn serialize(&self) -> Bytes;
}

Required Methods§

source

fn describe(&self) -> Option<FontDescription>

source

fn describe_with_absolute_size(&self) -> Option<FontDescription>

source

fn coverage(&self, language: &Language) -> Option<Coverage>

source

fn face(&self) -> Option<FontFace>

Available on crate feature v1_46 only.
source

fn font_map(&self) -> Option<FontMap>

source

fn glyph_extents(&self, glyph: Glyph) -> (Rectangle, Rectangle)

source

fn metrics(&self, language: Option<&Language>) -> Option<FontMetrics>

source

fn has_char(&self, wc: char) -> bool

Available on crate feature v1_44 only.
source

fn serialize(&self) -> Bytes

Available on crate feature v1_50 only.

Implementors§

source§

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