pub struct FontList { /* private fields */ }
Expand description
Font list for tracking fonts within a single PDF document
Implementations§
source§impl FontList
impl FontList
sourcepub fn add_font(
&mut self,
font_ref: IndirectFontRef,
font: DirectFontRef
) -> IndirectFontRef
pub fn add_font(
&mut self,
font_ref: IndirectFontRef,
font: DirectFontRef
) -> IndirectFontRef
Adds a font to the FontList
sourcepub fn get_font(&self, font: &IndirectFontRef) -> Option<DirectFontRef>
pub fn get_font(&self, font: &IndirectFontRef) -> Option<DirectFontRef>
Turns an indirect font reference into a direct one (Warning): clones the direct font reference