pub struct EmbeddedFontList { /* private fields */ }Expand description
Manages all embedded fonts for a presentation
Implementations§
Source§impl EmbeddedFontList
impl EmbeddedFontList
pub fn new() -> Self
Sourcepub fn add(&mut self, font: EmbeddedFont)
pub fn add(&mut self, font: EmbeddedFont)
Add an embedded font
Sourcepub fn fonts(&self) -> &[EmbeddedFont]
pub fn fonts(&self) -> &[EmbeddedFont]
Get all fonts
pub fn is_empty(&self) -> bool
Sourcepub fn assign_relationship_ids(&mut self, start: usize)
pub fn assign_relationship_ids(&mut self, start: usize)
Assign sequential rIdN relationship IDs to fonts that don’t already
have one. start is the first relationship number to use.
Sourcepub fn total_size(&self) -> usize
pub fn total_size(&self) -> usize
Total size of all font data
Sourcepub fn find_by_typeface(&self, typeface: &str) -> Vec<&EmbeddedFont>
pub fn find_by_typeface(&self, typeface: &str) -> Vec<&EmbeddedFont>
Find fonts by typeface name
Trait Implementations§
Source§impl Clone for EmbeddedFontList
impl Clone for EmbeddedFontList
Source§fn clone(&self) -> EmbeddedFontList
fn clone(&self) -> EmbeddedFontList
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmbeddedFontList
impl Debug for EmbeddedFontList
Source§impl Default for EmbeddedFontList
impl Default for EmbeddedFontList
Source§fn default() -> EmbeddedFontList
fn default() -> EmbeddedFontList
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EmbeddedFontList
impl RefUnwindSafe for EmbeddedFontList
impl Send for EmbeddedFontList
impl Sync for EmbeddedFontList
impl Unpin for EmbeddedFontList
impl UnsafeUnpin for EmbeddedFontList
impl UnwindSafe for EmbeddedFontList
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