pub struct FontData {
pub id: FontId,
pub family: String,
pub data: Vec<u8>,
pub face_index: u32,
pub bold: bool,
pub italic: bool,
}Expand description
Font data for embedding in PDF output.
Fields§
§id: FontIdFont identifier.
family: StringFont family name.
data: Vec<u8>Raw TTF/OTF bytes for PDF embedding.
face_index: u32Face index within a font collection.
bold: boolWhether this is a bold variant.
italic: boolWhether this is an italic variant.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FontData
impl RefUnwindSafe for FontData
impl Send for FontData
impl Sync for FontData
impl Unpin for FontData
impl UnsafeUnpin for FontData
impl UnwindSafe for FontData
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