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
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FontList
impl !Send for FontList
impl !Sync for FontList
impl Unpin for FontList
impl !UnwindSafe for FontList
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