pub struct PdfiumCustomFontProviderResponse {
pub id: PdfiumCustomFontHandle,
pub font_face: String,
pub character_set: PdfFontCharacterSet,
pub data: Vec<u8>,
}Expand description
The response to a single custom font lookup request from Pdfium.
Fields§
§id: PdfiumCustomFontHandleA unique ID for the custom font provided in this response. Pdfium will use this value as a font handle in all subsequent calls related to this font.
font_face: StringThe font face of the custom font provided in this response.
character_set: PdfFontCharacterSetThe character set of the custom font provided in this response.
data: Vec<u8>The raw font byte data for the custom font provided in this response, in either OpenType or TrueType format.
Trait Implementations§
impl Send for PdfiumCustomFontProviderResponse
Available on crate feature
thread_safe only.impl Sync for PdfiumCustomFontProviderResponse
Available on crate feature
thread_safe only.Auto Trait Implementations§
impl Freeze for PdfiumCustomFontProviderResponse
impl RefUnwindSafe for PdfiumCustomFontProviderResponse
impl Unpin for PdfiumCustomFontProviderResponse
impl UnsafeUnpin for PdfiumCustomFontProviderResponse
impl UnwindSafe for PdfiumCustomFontProviderResponse
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