Trait rich_sdl2_ttf_rust::font::AttributeExt [−][src]
pub trait AttributeExt {
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
fn is_fixed_width(&self) -> bool
fn is_fixed_width(&self) -> bool
Returns whether the font is fixed width.
fn family_name(&self) -> Option<Cow<'_, str>>
fn family_name(&self) -> Option<Cow<'_, str>>
Returns the family name of the font.
fn style_name(&self) -> Option<Cow<'_, str>>
fn style_name(&self) -> Option<Cow<'_, str>>
Returns the style name of the font.