pub struct Cff2<'a> { /* private fields */ }
Expand description
The Compact Font Format (CFF) version 2 table
Implementations§
Source§impl<'a> Cff2<'a>
impl<'a> Cff2<'a>
pub fn offset_data(&self) -> FontData<'a>
pub fn header(&self) -> &Cff2Header<'a>
Sourcepub fn top_dict_data(&self) -> &'a [u8] ⓘ
pub fn top_dict_data(&self) -> &'a [u8] ⓘ
Returns the raw data containing the top dict.
See https://learn.microsoft.com/en-us/typography/opentype/spec/cff2#7-top-dict-data
Sourcepub fn global_subrs(&self) -> Index2<'a>
pub fn global_subrs(&self) -> Index2<'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 Cff2<'a>
impl<'a> RefUnwindSafe for Cff2<'a>
impl<'a> Send for Cff2<'a>
impl<'a> Sync for Cff2<'a>
impl<'a> Unpin for Cff2<'a>
impl<'a> UnwindSafe for Cff2<'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
Mutably borrows from an owned value. Read more