pub trait AttributeExt {
    // Required methods
    fn faces(&self) -> usize;
    fn is_fixed_width(&self) -> bool;
    fn family_name(&self) -> Option<Cow<'_, str>>;
    fn style_name(&self) -> Option<Cow<'_, str>>;
}
Expand description

An extension for getting the attributes of the fonts.

Required Methods§

source

fn faces(&self) -> usize

Returns the numbers of the faces, the sub-font in the font.

source

fn is_fixed_width(&self) -> bool

Returns whether the font is fixed width.

source

fn family_name(&self) -> Option<Cow<'_, str>>

Returns the family name of the font.

source

fn style_name(&self) -> Option<Cow<'_, str>>

Returns the style name of the font.

Implementors§