pub(super) struct SfntCaches {Show 22 fields
tables: Arc<Tables>,
index: u32,
hint_reliant: AtomicU8,
glyph_sources: AtomicU32,
default_location: SfntLocation,
h_metrics: OnceLock<TableCache<MetricsTable<'static>>>,
v_metrics: OnceLock<TableCache<MetricsTable<'static>>>,
glyf_loca: OnceLock<TableCache<GlyfLoca<'static>>>,
hvar: OnceLock<TableCache<HvarTable<'static>>>,
vvar: OnceLock<TableCache<VvarTable<'static>>>,
gvar: OnceLock<TableCache<GvarTable<'static>>>,
cff2: OnceLock<TableCache<Cff2Font<'static>>>,
cff: OnceLock<TableCache<CffFont<'static>>>,
varc: OnceLock<Box<TableCache<Option<Outlines<'static>>>>>,
colr: OnceLock<Box<TableCache<Option<ColrTables<'static>>>>>,
cpal: OnceLock<Box<TableCache<CpalTable<'static>>>>,
sbix: OnceLock<Box<TableCache<SbixTable<'static>>>>,
cbdt: OnceLock<Box<TableCache<CbdtTables<'static>>>>,
ebdt: OnceLock<Box<TableCache<EbdtTables<'static>>>>,
vorg: OnceLock<TableCache<VorgTable<'static>>>,
charmap: OnceLock<TableCache<SfntUnicodeCharmap<'static>>>,
encodings: OnceLock<Box<TableCache<EncodingTables<'static>>>>,
}Expand description
Caches for an SFNT font, with each table parsed once per font.
Fields§
§tables: Arc<Tables>§index: u32§hint_reliant: AtomicU8§glyph_sources: AtomicU32§default_location: SfntLocation§h_metrics: OnceLock<TableCache<MetricsTable<'static>>>§v_metrics: OnceLock<TableCache<MetricsTable<'static>>>§glyf_loca: OnceLock<TableCache<GlyfLoca<'static>>>§hvar: OnceLock<TableCache<HvarTable<'static>>>§vvar: OnceLock<TableCache<VvarTable<'static>>>§gvar: OnceLock<TableCache<GvarTable<'static>>>§cff2: OnceLock<TableCache<Cff2Font<'static>>>§cff: OnceLock<TableCache<CffFont<'static>>>§varc: OnceLock<Box<TableCache<Option<Outlines<'static>>>>>§colr: OnceLock<Box<TableCache<Option<ColrTables<'static>>>>>§cpal: OnceLock<Box<TableCache<CpalTable<'static>>>>§sbix: OnceLock<Box<TableCache<SbixTable<'static>>>>§cbdt: OnceLock<Box<TableCache<CbdtTables<'static>>>>§ebdt: OnceLock<Box<TableCache<EbdtTables<'static>>>>§vorg: OnceLock<TableCache<VorgTable<'static>>>§charmap: OnceLock<TableCache<SfntUnicodeCharmap<'static>>>§encodings: OnceLock<Box<TableCache<EncodingTables<'static>>>>Implementations§
Auto Trait Implementations§
impl !Freeze for SfntCaches
impl !RefUnwindSafe for SfntCaches
impl !UnwindSafe for SfntCaches
impl Send for SfntCaches
impl Sync for SfntCaches
impl Unpin for SfntCaches
impl UnsafeUnpin for SfntCaches
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