pub struct GlyphStyles(/* private fields */);
Expand description
Set of derived glyph styles that are used for automatic hinting.
These are invariant per font so can be precomputed and reused for multiple
instances when requesting automatic hinting with Engine::Auto
.
Implementations§
source§impl GlyphStyles
impl GlyphStyles
sourcepub fn new(outlines: &OutlineGlyphCollection<'_>) -> Self
pub fn new(outlines: &OutlineGlyphCollection<'_>) -> Self
Precomputes the full set of glyph styles for the given outlines.
Trait Implementations§
source§impl Clone for GlyphStyles
impl Clone for GlyphStyles
source§fn clone(&self) -> GlyphStyles
fn clone(&self) -> GlyphStyles
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 Freeze for GlyphStyles
impl RefUnwindSafe for GlyphStyles
impl Send for GlyphStyles
impl Sync for GlyphStyles
impl Unpin for GlyphStyles
impl UnwindSafe for GlyphStyles
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)