pub struct TtfParser<'a> { /* private fields */ }Expand description
TrueType font parser
Implementations§
Source§impl<'a> TtfParser<'a>
impl<'a> TtfParser<'a>
Sourcepub fn extract_metrics(&self) -> Result<FontMetrics>
pub fn extract_metrics(&self) -> Result<FontMetrics>
Extract font metrics from the font
Sourcepub fn create_descriptor(&self) -> Result<FontDescriptor>
pub fn create_descriptor(&self) -> Result<FontDescriptor>
Create font descriptor from the font
Sourcepub fn extract_glyph_mapping(&self) -> Result<GlyphMapping>
pub fn extract_glyph_mapping(&self) -> Result<GlyphMapping>
Extract character to glyph mapping
Auto Trait Implementations§
impl<'a> Freeze for TtfParser<'a>
impl<'a> RefUnwindSafe for TtfParser<'a>
impl<'a> Send for TtfParser<'a>
impl<'a> Sync for TtfParser<'a>
impl<'a> Unpin for TtfParser<'a>
impl<'a> UnsafeUnpin for TtfParser<'a>
impl<'a> UnwindSafe for TtfParser<'a>
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