Trait rich_sdl2_rust::ttf::font::AttributeExt
source · 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§
sourcefn is_fixed_width(&self) -> bool
fn is_fixed_width(&self) -> bool
Returns whether the font is fixed width.
sourcefn family_name(&self) -> Option<Cow<'_, str>>
fn family_name(&self) -> Option<Cow<'_, str>>
Returns the family name of the font.
sourcefn style_name(&self) -> Option<Cow<'_, str>>
fn style_name(&self) -> Option<Cow<'_, str>>
Returns the style name of the font.