pub struct Font { /* private fields */ }Implementations§
Source§impl Font
impl Font
pub fn glyph_count(&self) -> u16
pub fn units_per_em(&self) -> u16
pub fn bounding_box(&self) -> (i16, i16, i16, i16)
pub fn underline_position(&self) -> i16
pub fn underline_thickness(&self) -> i16
pub fn italic_angle(&self) -> Fixed
pub fn is_fixed_pitch(&self) -> bool
pub fn ascent(&self) -> i16
pub fn descent(&self) -> i16
pub fn default_aw(&self) -> u16
pub fn cap_height(&self) -> i16
pub fn weight_class(&self) -> u16
pub fn char_to_glyph(&self, c: char) -> u16
pub fn glyph_to_char(&self, glyph: u16) -> char
pub fn glyph_to_aw(&self, glyph: u16) -> u16
pub fn glyph_substitution_table(&self) -> Option<GlyphSubstitutionTable<'_>>
pub fn glyph_string( &self, text: &str, scripts: ScriptSet, languages: LanguageSet, features: FeatureSet, ) -> Vec<u16>
pub fn glyph_string_width(&self, glyphs: &[u16]) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more