pub struct FontTables(TableSource);Expand description
Individual font table access.
Tuple Fields§
§0: TableSourceImplementations§
Source§impl FontTables
impl FontTables
fn ankr_state(&self) -> Option<TableState<'_>>
Sourcepub fn avar_data(&self) -> Option<&[u8]>
pub fn avar_data(&self) -> Option<&[u8]>
Axis variation table data.
See the avar specification.
fn avar_state(&self) -> Option<TableState<'_>>
fn base_state(&self) -> Option<TableState<'_>>
Sourcepub fn cff_data(&self) -> Option<&[u8]>
pub fn cff_data(&self) -> Option<&[u8]>
Compact font format table data.
See the CFF specification.
fn cff_state(&self) -> Option<TableState<'_>>
Sourcepub fn cff2_data(&self) -> Option<&[u8]>
pub fn cff2_data(&self) -> Option<&[u8]>
Compact font format 2.0 table data.
See the CFF2 specification.
fn cff2_state(&self) -> Option<TableState<'_>>
Sourcepub fn cbdt_data(&self) -> Option<&[u8]>
pub fn cbdt_data(&self) -> Option<&[u8]>
Color bitmap data table data.
See the CBDT specification.
fn cbdt_state(&self) -> Option<TableState<'_>>
Sourcepub fn cblc_data(&self) -> Option<&[u8]>
pub fn cblc_data(&self) -> Option<&[u8]>
Color bitmap location table data.
See the CBLC specification.
fn cblc_state(&self) -> Option<TableState<'_>>
fn colr_state(&self) -> Option<TableState<'_>>
fn cpal_state(&self) -> Option<TableState<'_>>
Sourcepub fn cmap_data(&self) -> Option<&[u8]>
pub fn cmap_data(&self) -> Option<&[u8]>
Character to glyph mapping table data.
See the cmap specification.
fn cmap_state(&self) -> Option<TableState<'_>>
Sourcepub fn cvar_data(&self) -> Option<&[u8]>
pub fn cvar_data(&self) -> Option<&[u8]>
CVT variations table data.
See the cvar specification.
fn cvar_state(&self) -> Option<TableState<'_>>
fn cvt_state(&self) -> Option<TableState<'_>>
Sourcepub fn dsig_data(&self) -> Option<&[u8]>
pub fn dsig_data(&self) -> Option<&[u8]>
Digital signature table data.
See the DSIG specification.
fn dsig_state(&self) -> Option<TableState<'_>>
Sourcepub fn ebdt_data(&self) -> Option<&[u8]>
pub fn ebdt_data(&self) -> Option<&[u8]>
Embedded bitmap data table data.
See the EBDT specification.
fn ebdt_state(&self) -> Option<TableState<'_>>
Sourcepub fn eblc_data(&self) -> Option<&[u8]>
pub fn eblc_data(&self) -> Option<&[u8]>
Embedded bitmap location data table data.
See the EBLC specification.
fn eblc_state(&self) -> Option<TableState<'_>>
fn feat_state(&self) -> Option<TableState<'_>>
fn fpgm_state(&self) -> Option<TableState<'_>>
Sourcepub fn fvar_data(&self) -> Option<&[u8]>
pub fn fvar_data(&self) -> Option<&[u8]>
Font variations table data.
See the fvar specification.
fn fvar_state(&self) -> Option<TableState<'_>>
Sourcepub fn gasp_data(&self) -> Option<&[u8]>
pub fn gasp_data(&self) -> Option<&[u8]>
Grid-fitting and scan-conversion procedure table data.
See the gasp specification.
fn gasp_state(&self) -> Option<TableState<'_>>
Sourcepub fn gdef_data(&self) -> Option<&[u8]>
pub fn gdef_data(&self) -> Option<&[u8]>
Glyph definition table data.
See the GDEF specification.
fn gdef_state(&self) -> Option<TableState<'_>>
Sourcepub fn glyf_data(&self) -> Option<&[u8]>
pub fn glyf_data(&self) -> Option<&[u8]>
TrueType glyph data table data.
See the glyf specification.
fn glyf_state(&self) -> Option<TableState<'_>>
Sourcepub fn gpos_data(&self) -> Option<&[u8]>
pub fn gpos_data(&self) -> Option<&[u8]>
Glyph positioning table data.
See the GPOS specification.
fn gpos_state(&self) -> Option<TableState<'_>>
Sourcepub fn gsub_data(&self) -> Option<&[u8]>
pub fn gsub_data(&self) -> Option<&[u8]>
Glyph substitution table data.
See the GSUB specification.
fn gsub_state(&self) -> Option<TableState<'_>>
Sourcepub fn gvar_data(&self) -> Option<&[u8]>
pub fn gvar_data(&self) -> Option<&[u8]>
Glyph variation table data.
See the gvar specification.
fn gvar_state(&self) -> Option<TableState<'_>>
Sourcepub fn hdmx_data(&self) -> Option<&[u8]>
pub fn hdmx_data(&self) -> Option<&[u8]>
Horizontal device metrics data.
See the hdmx specification.
fn hdmx_state(&self) -> Option<TableState<'_>>
fn head_state(&self) -> Option<TableState<'_>>
Sourcepub fn hhea_data(&self) -> Option<&[u8]>
pub fn hhea_data(&self) -> Option<&[u8]>
Horizontal header table data.
See the hhea specification.
fn hhea_state(&self) -> Option<TableState<'_>>
Sourcepub fn hmtx_data(&self) -> Option<&[u8]>
pub fn hmtx_data(&self) -> Option<&[u8]>
Horizontal metrics table data.
See the hmtx specification.
fn hmtx_state(&self) -> Option<TableState<'_>>
Sourcepub fn hvar_data(&self) -> Option<&[u8]>
pub fn hvar_data(&self) -> Option<&[u8]>
Horizontal metrics variation table data.
See the HVAR specification.
fn hvar_state(&self) -> Option<TableState<'_>>
Sourcepub fn ift_data(&self) -> Option<&[u8]>
pub fn ift_data(&self) -> Option<&[u8]>
Incremental font transfer table data.
See the IFT specification.
fn ift_state(&self) -> Option<TableState<'_>>
Sourcepub fn iftx_data(&self) -> Option<&[u8]>
pub fn iftx_data(&self) -> Option<&[u8]>
Incremental font transfer table data.
See the IFTX specification.
fn iftx_state(&self) -> Option<TableState<'_>>
fn jstf_state(&self) -> Option<TableState<'_>>
fn kern_state(&self) -> Option<TableState<'_>>
Sourcepub fn kerx_data(&self) -> Option<&[u8]>
pub fn kerx_data(&self) -> Option<&[u8]>
Extended kerning table data.
See the kerx specification.
fn kerx_state(&self) -> Option<TableState<'_>>
Sourcepub fn loca_data(&self) -> Option<&[u8]>
pub fn loca_data(&self) -> Option<&[u8]>
Index to location table data.
See the loca specification.
fn loca_state(&self) -> Option<TableState<'_>>
fn ltag_state(&self) -> Option<TableState<'_>>
Sourcepub fn math_data(&self) -> Option<&[u8]>
pub fn math_data(&self) -> Option<&[u8]>
Mathematical typesetting table data.
See the MATH specification.
fn math_state(&self) -> Option<TableState<'_>>
Sourcepub fn maxp_data(&self) -> Option<&[u8]>
pub fn maxp_data(&self) -> Option<&[u8]>
Maximum profile table data.
See the maxp specification.
fn maxp_state(&self) -> Option<TableState<'_>>
fn meta_state(&self) -> Option<TableState<'_>>
Sourcepub fn morx_data(&self) -> Option<&[u8]>
pub fn morx_data(&self) -> Option<&[u8]>
Extended metamorphosis table data.
See the morx specification.
fn morx_state(&self) -> Option<TableState<'_>>
Sourcepub fn mvar_data(&self) -> Option<&[u8]>
pub fn mvar_data(&self) -> Option<&[u8]>
Metrics variation table data.
See the MVAR specification.
fn mvar_state(&self) -> Option<TableState<'_>>
fn name_state(&self) -> Option<TableState<'_>>
Sourcepub fn os2_data(&self) -> Option<&[u8]>
pub fn os2_data(&self) -> Option<&[u8]>
OS/2 and Windows-specific metrics table data.
See the OS/2 specification.
fn os2_state(&self) -> Option<TableState<'_>>
Sourcepub fn post_data(&self) -> Option<&[u8]>
pub fn post_data(&self) -> Option<&[u8]>
PostScript information table data.
See the post specification.
fn post_state(&self) -> Option<TableState<'_>>
Sourcepub fn prep_data(&self) -> Option<&[u8]>
pub fn prep_data(&self) -> Option<&[u8]>
Control value program table data.
See the prep specification.
fn prep_state(&self) -> Option<TableState<'_>>
Sourcepub fn sbix_data(&self) -> Option<&[u8]>
pub fn sbix_data(&self) -> Option<&[u8]>
Standard bitmap graphics table data.
See the sbix specification.
fn sbix_state(&self) -> Option<TableState<'_>>
Sourcepub fn stat_data(&self) -> Option<&[u8]>
pub fn stat_data(&self) -> Option<&[u8]>
Style attributes table data.
See the STAT specification.
fn stat_state(&self) -> Option<TableState<'_>>
Sourcepub fn svg_data(&self) -> Option<&[u8]>
pub fn svg_data(&self) -> Option<&[u8]>
Scalable vector graphics table data.
See the SVG specification.
fn svg_state(&self) -> Option<TableState<'_>>
fn trak_state(&self) -> Option<TableState<'_>>
Sourcepub fn varc_data(&self) -> Option<&[u8]>
pub fn varc_data(&self) -> Option<&[u8]>
Variable composite/component table data.
See the VARC specification.
fn varc_state(&self) -> Option<TableState<'_>>
Sourcepub fn vhea_data(&self) -> Option<&[u8]>
pub fn vhea_data(&self) -> Option<&[u8]>
Vertical header table data.
See the vhea specification.
fn vhea_state(&self) -> Option<TableState<'_>>
Sourcepub fn vmtx_data(&self) -> Option<&[u8]>
pub fn vmtx_data(&self) -> Option<&[u8]>
Vertical metrics table data.
See the vmtx specification.
fn vmtx_state(&self) -> Option<TableState<'_>>
Sourcepub fn vorg_data(&self) -> Option<&[u8]>
pub fn vorg_data(&self) -> Option<&[u8]>
Vertical origin table data.
See the VORG specification.
fn vorg_state(&self) -> Option<TableState<'_>>
Sourcepub fn vvar_data(&self) -> Option<&[u8]>
pub fn vvar_data(&self) -> Option<&[u8]>
Vertical metrics variation table data.
See the VVAR specification.
fn vvar_state(&self) -> Option<TableState<'_>>
Source§impl FontTables
impl FontTables
Source§impl FontTables
impl FontTables
fn load_table<'a, T: TopLevelTable + FontRead<'a>>( &'a self, state: Option<TableState<'a>>, ) -> Result<T, ReadError>
fn load_table_with_tag<'a, T: FontRead<'a>>( &'a self, state: Option<TableState<'a>>, tag: Tag, ) -> Result<T, ReadError>
fn load_table_with_args<'a, T: TopLevelTable + FontReadWithArgs<'a>>( &'a self, state: Option<TableState<'a>>, args: &T::Args, ) -> Result<T, ReadError>
Trait Implementations§
Source§impl<'a> TableProvider<'a> for &'a FontTables
impl<'a> TableProvider<'a> for &'a FontTables
Source§fn loca(&self, is_long: impl Into<Option<bool>>) -> Result<Loca<'a>, ReadError>
fn loca(&self, is_long: impl Into<Option<bool>>) -> Result<Loca<'a>, ReadError>
is_long can be optionally provided, if known, otherwise we look it up in head.
Source§fn cvt(&self) -> Result<&'a [BigEndian<i16>], ReadError>
fn cvt(&self) -> Result<&'a [BigEndian<i16>], ReadError>
Returns the array of entries for the control value table which is used for TrueType hinting.