pub enum FontData {
Standard(StandardFont),
Custom {
data: Vec<u8>,
used_glyphs: Vec<u16>,
metrics: Option<CustomFontMetrics>,
},
}Variants§
Standard(StandardFont)
One of the 14 standard PDF fonts. No embedding needed.
Custom
A TrueType/OpenType font that needs to be embedded.
Implementations§
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