pub struct Type3Glyph<'a> { /* private fields */ }Expand description
A type3 glyph.
Implementations§
Source§impl<'a> Type3Glyph<'a>
A glyph defined by PDF drawing instructions.
impl<'a> Type3Glyph<'a>
A glyph defined by PDF drawing instructions.
Sourcepub fn interpret(
&self,
device: &mut impl Device<'a>,
transform: Affine,
glyph_transform: Affine,
paint: &Paint<'a>,
)
pub fn interpret( &self, device: &mut impl Device<'a>, transform: Affine, glyph_transform: Affine, paint: &Paint<'a>, )
Draw the type3 glyph to the given device.
Sourcepub fn as_unicode(&self) -> Option<BfString>
pub fn as_unicode(&self) -> Option<BfString>
Returns the Unicode code point for this glyph, if available.
Note: Type3 fonts can only provide Unicode via ToUnicode cmap.
Trait Implementations§
Source§impl CacheKey for Type3Glyph<'_>
impl CacheKey for Type3Glyph<'_>
Source§impl<'a> Clone for Type3Glyph<'a>
impl<'a> Clone for Type3Glyph<'a>
Source§fn clone(&self) -> Type3Glyph<'a>
fn clone(&self) -> Type3Glyph<'a>
Returns a duplicate 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> Freeze for Type3Glyph<'a>
impl<'a> !RefUnwindSafe for Type3Glyph<'a>
impl<'a> !Send for Type3Glyph<'a>
impl<'a> !Sync for Type3Glyph<'a>
impl<'a> Unpin for Type3Glyph<'a>
impl<'a> UnsafeUnpin for Type3Glyph<'a>
impl<'a> !UnwindSafe for Type3Glyph<'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