pub struct PDTrueTypeFont {
pub font_name: String,
pub units_per_em: u16,
pub ascent: i16,
pub descent: i16,
pub font_id: ObjectId,
}Expand description
Embedded TrueType font.
Fields§
§font_name: String§units_per_em: u16§ascent: i16§descent: i16§font_id: ObjectIdImplementations§
Source§impl PDTrueTypeFont
impl PDTrueTypeFont
Sourcepub fn load(cos_doc: &mut COSDocument, font_bytes: &[u8]) -> PdfResult<Self>
pub fn load(cos_doc: &mut COSDocument, font_bytes: &[u8]) -> PdfResult<Self>
Loads and embeds a TrueType font from font file bytes into the given COSDocument.
Trait Implementations§
Source§impl Clone for PDTrueTypeFont
impl Clone for PDTrueTypeFont
Source§fn clone(&self) -> PDTrueTypeFont
fn clone(&self) -> PDTrueTypeFont
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PDTrueTypeFont
impl RefUnwindSafe for PDTrueTypeFont
impl Send for PDTrueTypeFont
impl Sync for PDTrueTypeFont
impl Unpin for PDTrueTypeFont
impl UnsafeUnpin for PDTrueTypeFont
impl UnwindSafe for PDTrueTypeFont
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