Struct printpdf::types::plugins::graphics::two_dimensional::font::FontList
[−]
[src]
pub struct FontList { /* fields omitted */ }
Font list for tracking fonts within a single PDF document
Methods
impl FontList
[src]
fn new() -> Self
[src]
Creates a new FontList
fn add_font(
&mut self,
font_ref: IndirectFontRef,
font: DirectFontRef
) -> IndirectFontRef
[src]
&mut self,
font_ref: IndirectFontRef,
font: DirectFontRef
) -> IndirectFontRef
Adds a font to the FontList
fn get_font(&self, font: &IndirectFontRef) -> Option<DirectFontRef>
[src]
Turns an indirect font reference into a direct one (Warning): clones the direct font reference
fn len(&self) -> usize
[src]
Returns the number of fonts currenly in use
fn is_empty(&self) -> bool
[src]
Returns if the font list is empty