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]
impl FontList
pub fn new() -> Self
[src]
pub fn new() -> Self
Creates a new FontList
pub fn add_font(
&mut self,
font_ref: IndirectFontRef,
font: DirectFontRef
) -> IndirectFontRef
[src]
pub fn add_font(
&mut self,
font_ref: IndirectFontRef,
font: DirectFontRef
) -> IndirectFontRef
Adds a font to the FontList
pub fn get_font(&self, font: &IndirectFontRef) -> Option<DirectFontRef>
[src]
pub fn get_font(&self, font: &IndirectFontRef) -> Option<DirectFontRef>
Turns an indirect font reference into a direct one (Warning): clones the direct font reference
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
Returns the number of fonts currenly in use
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
Returns if the font list is empty
Trait Implementations
impl Default for FontList
[src]
impl Default for FontList
impl Debug for FontList
[src]
impl Debug for FontList
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for FontList
[src]
impl Clone for FontList