Struct skrifa::OutlineGlyphCollection
source · pub struct OutlineGlyphCollection<'a> { /* private fields */ }Expand description
Collection of scalable glyph outlines.
Implementations§
source§impl<'a> OutlineGlyphCollection<'a>
impl<'a> OutlineGlyphCollection<'a>
sourcepub fn new(font: &impl TableProvider<'a>) -> Self
pub fn new(font: &impl TableProvider<'a>) -> Self
Creates a new outline collection for the given font.
sourcepub fn with_format(
font: &impl TableProvider<'a>,
format: OutlineGlyphFormat
) -> Option<Self>
pub fn with_format( font: &impl TableProvider<'a>, format: OutlineGlyphFormat ) -> Option<Self>
Creates a new outline collection for the given font and outline format.
Returns None if the font does not contain outlines in the requested
format.
sourcepub fn format(&self) -> Option<OutlineGlyphFormat>
pub fn format(&self) -> Option<OutlineGlyphFormat>
Returns the underlying format of the source outline tables.
sourcepub fn get(&self, glyph_id: GlyphId) -> Option<OutlineGlyph<'a>>
pub fn get(&self, glyph_id: GlyphId) -> Option<OutlineGlyph<'a>>
Returns the outline for the given glyph identifier.
Trait Implementations§
source§impl<'a> Clone for OutlineGlyphCollection<'a>
impl<'a> Clone for OutlineGlyphCollection<'a>
source§fn clone(&self) -> OutlineGlyphCollection<'a>
fn clone(&self) -> OutlineGlyphCollection<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for OutlineGlyphCollection<'a>
impl<'a> Send for OutlineGlyphCollection<'a>
impl<'a> Sync for OutlineGlyphCollection<'a>
impl<'a> Unpin for OutlineGlyphCollection<'a>
impl<'a> UnwindSafe for OutlineGlyphCollection<'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