Trait pango::prelude::FontExt

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

Required Methods§

source

fn describe(&self) -> FontDescription

source

fn describe_with_absolute_size(&self) -> FontDescription

source

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

source

fn face(&self) -> 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>) -> 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