pub struct PdfFontGlyph<'a> { /* private fields */ }Expand description
A single font glyph in a PdfFontGlyphs collection.
Implementations§
Source§impl<'a> PdfFontGlyph<'a>
impl<'a> PdfFontGlyph<'a>
Sourcepub fn width_at_font_size(&self, size: PdfPoints) -> PdfPoints
pub fn width_at_font_size(&self, size: PdfPoints) -> PdfPoints
Returns the width of this PdfFontGlyph when rendered at the given font size.
Sourcepub fn segments_at_font_size(
&self,
size: PdfPoints,
) -> Result<PdfFontGlyphPath<'_>, PdfiumError>
pub fn segments_at_font_size( &self, size: PdfPoints, ) -> Result<PdfFontGlyphPath<'_>, PdfiumError>
Returns the path segments of this PdfFontGlyph when rendered at the given font size.
Trait Implementations§
Source§impl<'a> PdfiumLibraryBindingsAccessor<'a> for PdfFontGlyph<'a>
impl<'a> PdfiumLibraryBindingsAccessor<'a> for PdfFontGlyph<'a>
fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
impl<'a> Send for PdfFontGlyph<'a>
Available on crate feature
thread_safe only.impl<'a> Sync for PdfFontGlyph<'a>
Available on crate feature
thread_safe only.Auto Trait Implementations§
impl<'a> Freeze for PdfFontGlyph<'a>
impl<'a> RefUnwindSafe for PdfFontGlyph<'a>
impl<'a> Unpin for PdfFontGlyph<'a>
impl<'a> UnsafeUnpin for PdfFontGlyph<'a>
impl<'a> UnwindSafe for PdfFontGlyph<'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
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