pub struct EmbeddedFontData {
pub pdf_name: String,
pub font_type: FontType,
pub descriptor: FontDescriptor,
pub font_program: Vec<u8>,
pub encoding: FontEncoding,
pub metrics: FontMetrics,
pub subset_glyphs: Option<HashSet<u16>>,
pub unicode_mappings: HashMap<u16, String>,
}Expand description
Embedded font data for PDF generation
Fields§
§pdf_name: StringFont name in PDF
font_type: FontTypeFont type
descriptor: FontDescriptorFont descriptor object
font_program: Vec<u8>Font program data (subset or full)
encoding: FontEncodingCharacter mappings
metrics: FontMetricsFont metrics
subset_glyphs: Option<HashSet<u16>>Subset glyph set (if subsetted)
unicode_mappings: HashMap<u16, String>Unicode mappings for ToUnicode CMap
Trait Implementations§
Source§impl Clone for EmbeddedFontData
impl Clone for EmbeddedFontData
Source§fn clone(&self) -> EmbeddedFontData
fn clone(&self) -> EmbeddedFontData
Returns a duplicate of the value. Read more
1.0.0 · 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 EmbeddedFontData
impl RefUnwindSafe for EmbeddedFontData
impl Send for EmbeddedFontData
impl Sync for EmbeddedFontData
impl Unpin for EmbeddedFontData
impl UnwindSafe for EmbeddedFontData
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