pub struct PdfiumCustomFontProviderRequest {
pub font_face: String,
pub character_set: PdfFontCharacterSet,
pub weight: PdfFontWeight,
pub is_italic: bool,
pub is_fixed_pitch: bool,
pub is_serif: bool,
pub is_cursive: bool,
}Expand description
A single custom font lookup request from Pdfium.
Fields§
§font_face: StringThe font face of the requested custom font.
character_set: PdfFontCharacterSetThe character set of the requested custom font.
weight: PdfFontWeightThe weight of the requested custom font.
is_italic: booltrue if the glyphs in the requested custom font should include dominant vertical
strokes that are slanted.
is_fixed_pitch: booltrue if all the glyphs in the requested custom font should have the same width.
is_serif: booltrue if the glyphs in the requested custom font should have serifs - short strokes
drawn at an angle on the top or bottom of glyph stems to decorate the glyphs.
For example, Times New Roman is a serif font.
is_cursive: booltrue if the glyphs in the requested custom font should be designed to resemble
cursive handwriting.
Trait Implementations§
impl Send for PdfiumCustomFontProviderRequest
Available on crate feature
thread_safe only.impl Sync for PdfiumCustomFontProviderRequest
Available on crate feature
thread_safe only.Auto Trait Implementations§
impl Freeze for PdfiumCustomFontProviderRequest
impl RefUnwindSafe for PdfiumCustomFontProviderRequest
impl Unpin for PdfiumCustomFontProviderRequest
impl UnsafeUnpin for PdfiumCustomFontProviderRequest
impl UnwindSafe for PdfiumCustomFontProviderRequest
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