Struct read_fonts::tables::cff2::Cff2
source · 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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)