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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more