pub struct FontOutlineFace<'a> { /* private fields */ }Expand description
Validated, variation-configured face reusable across a bounded text run.
Implementations§
Source§impl<'a> FontOutlineFace<'a>
impl<'a> FontOutlineFace<'a>
Sourcepub fn new(
font_bytes: &'a [u8],
request: FontOutlineFaceRequest<'_>,
) -> Result<Self, FontOutlineError>
pub fn new( font_bytes: &'a [u8], request: FontOutlineFaceRequest<'_>, ) -> Result<Self, FontOutlineError>
Validate and configure one face once for reuse across many glyphs.
Sourcepub fn units_per_em(&self) -> u16
pub fn units_per_em(&self) -> u16
Return the face’s OpenType units per em.
Sourcepub fn extract_glyph(
&self,
glyph_id: u32,
) -> Result<FontOutlineOutput, FontOutlineError>
pub fn extract_glyph( &self, glyph_id: u32, ) -> Result<FontOutlineOutput, FontOutlineError>
Extract one glyph. KiCad draws every outline command (#612).
Auto Trait Implementations§
impl<'a> Freeze for FontOutlineFace<'a>
impl<'a> RefUnwindSafe for FontOutlineFace<'a>
impl<'a> Send for FontOutlineFace<'a>
impl<'a> Sync for FontOutlineFace<'a>
impl<'a> Unpin for FontOutlineFace<'a>
impl<'a> UnsafeUnpin for FontOutlineFace<'a>
impl<'a> UnwindSafe for FontOutlineFace<'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