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 with_format(
font: &FontRef<'a>,
format: OutlineGlyphFormat,
) -> Option<Self>
pub fn with_format( font: &FontRef<'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.
sourcepub fn iter(
&self,
) -> impl Iterator<Item = (GlyphId, OutlineGlyph<'a>)> + 'a + Clone
pub fn iter( &self, ) -> impl Iterator<Item = (GlyphId, OutlineGlyph<'a>)> + 'a + Clone
Returns an iterator over all of the outline glyphs in the collection.
sourcepub fn prefer_interpreter(&self) -> bool
pub fn prefer_interpreter(&self) -> bool
Returns true if the interpreter engine should be used for hinting this set of outlines.
When this returns false, you likely want to use the automatic hinter instead.
This matches the logic used in FreeType when neither of the
FT_LOAD_FORCE_AUTOHINT
or FT_LOAD_NO_AUTOHINT
load flags are
specified.
When setting HintingOptions::engine
to Engine::AutoFallback
,
this is used to determine whether to use the interpreter or automatic
hinter.
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>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for OutlineGlyphCollection<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)