pub enum Font {
Builtin {
encoding: Encoding,
},
TrueType {
encoding: Encoding,
data: Vec<u8>,
},
}Expand description
A resolved font ready to place glyphs.
Variants§
Builtin
The built-in fallback: a 5×7 bitmap alphabet, used when the document carries no usable font program (all of the base-14 cases).
TrueType
An embedded TrueType program.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Font
impl Freeze for Font
impl Move for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnsafeUnpin for Font
impl UnwindSafe for Font
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