pub enum GlyphPainting {
EmbeddedTrueTypeOnly,
AllEmbedded,
Full,
}Expand description
How aggressively the rasterizer turns text into filled outlines. Each tier is a strict superset of the previous one; the difference is only observable once the corresponding glyph loaders exist.
Variants§
EmbeddedTrueTypeOnly
Only embedded TrueType (glyf) outlines — the cheapest tier.
AllEmbedded
Every embedded program: TrueType, CFF, Type1 and Type3. No bundled assets.
Full
Also substitute bundled or caller-provided faces for non-embedded fonts.
Implementations§
Source§impl GlyphPainting
impl GlyphPainting
Sourcepub fn paints_all_embedded(self) -> bool
pub fn paints_all_embedded(self) -> bool
Whether this tier paints every embedded program (CFF, Type1, Type3), not just embedded TrueType.
Trait Implementations§
Source§impl Clone for GlyphPainting
impl Clone for GlyphPainting
Source§fn clone(&self) -> GlyphPainting
fn clone(&self) -> GlyphPainting
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GlyphPainting
Source§impl Debug for GlyphPainting
impl Debug for GlyphPainting
Source§impl Default for GlyphPainting
impl Default for GlyphPainting
Source§fn default() -> GlyphPainting
fn default() -> GlyphPainting
Returns the “default value” for a type. Read more
impl Eq for GlyphPainting
Source§impl PartialEq for GlyphPainting
impl PartialEq for GlyphPainting
impl StructuralPartialEq for GlyphPainting
Auto Trait Implementations§
impl Freeze for GlyphPainting
impl RefUnwindSafe for GlyphPainting
impl Send for GlyphPainting
impl Sync for GlyphPainting
impl Unpin for GlyphPainting
impl UnsafeUnpin for GlyphPainting
impl UnwindSafe for GlyphPainting
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more