Struct read_fonts::tables::cff::Cff
source · pub struct Cff<'a> { /* private fields */ }
Expand description
The Compact Font Format table.
Implementations§
source§impl<'a> Cff<'a>
impl<'a> Cff<'a>
pub fn offset_data(&self) -> FontData<'a>
pub fn header(&self) -> CffHeader<'a>
sourcepub fn names(&self) -> Index1<'a>
pub fn names(&self) -> Index1<'a>
Returns the name index.
This contains the PostScript names of all fonts in the font set.
See “Name INDEX” at https://adobe-type-tools.github.io/font-tech-notes/pdfs/5176.CFF.pdf#page=13
sourcepub fn name(&self, index: usize) -> Option<Latin1String<'a>>
pub fn name(&self, index: usize) -> Option<Latin1String<'a>>
Returns the PostScript name for the font in the font set at the given index.
sourcepub fn top_dicts(&self) -> Index1<'a>
pub fn top_dicts(&self) -> Index1<'a>
Returns the top dict index.
This contains the top-level DICTs of all fonts in the font set. The objects here correspond to those in the name index.
See “Top DICT INDEX” at https://adobe-type-tools.github.io/font-tech-notes/pdfs/5176.CFF.pdf#page=14
sourcepub fn strings(&self) -> Index1<'a>
pub fn strings(&self) -> Index1<'a>
Returns the string index.
This contains all of the strings used by fonts within the font set.
They are referenced by string identifiers represented by the
StringId
type.
See “String INDEX” at https://adobe-type-tools.github.io/font-tech-notes/pdfs/5176.CFF.pdf#page=17
sourcepub fn string(&self, id: StringId) -> Option<Latin1String<'a>>
pub fn string(&self, id: StringId) -> Option<Latin1String<'a>>
Returns the associated string for the given identifier.
If the identifier does not represent a standard string, the result is looked up in the string index.
sourcepub fn global_subrs(&self) -> Index1<'a>
pub fn global_subrs(&self) -> Index1<'a>
Returns the global subroutine index.
This contains sub-programs that are referenced by one or more charstrings in the font set.
See “Local/Global Subrs INDEXes” at https://adobe-type-tools.github.io/font-tech-notes/pdfs/5176.CFF.pdf#page=25
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Cff<'a>
impl<'a> RefUnwindSafe for Cff<'a>
impl<'a> Send for Cff<'a>
impl<'a> Sync for Cff<'a>
impl<'a> Unpin for Cff<'a>
impl<'a> UnwindSafe for Cff<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)