pub struct Tables(TableSource);Expand description
Individual font table access.
Tuple Fields§
§0: TableSourceImplementations§
Source§impl Tables
impl Tables
Sourcepub fn avar_data(&self) -> Option<&[u8]>
pub fn avar_data(&self) -> Option<&[u8]>
Axis variation table data.
See the avar specification.
Sourcepub fn cff_data(&self) -> Option<&[u8]>
pub fn cff_data(&self) -> Option<&[u8]>
Compact font format table data.
See the CFF specification.
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.
Sourcepub fn cbdt_data(&self) -> Option<&[u8]>
pub fn cbdt_data(&self) -> Option<&[u8]>
Color bitmap data table data.
See the CBDT specification.
Sourcepub fn cblc_data(&self) -> Option<&[u8]>
pub fn cblc_data(&self) -> Option<&[u8]>
Color bitmap location table data.
See the CBLC specification.
Sourcepub fn cmap_data(&self) -> Option<&[u8]>
pub fn cmap_data(&self) -> Option<&[u8]>
Character to glyph mapping table data.
See the cmap specification.
Sourcepub fn cvar_data(&self) -> Option<&[u8]>
pub fn cvar_data(&self) -> Option<&[u8]>
CVT variations table data.
See the cvar specification.
Sourcepub fn dmap_data(&self) -> Option<&[u8]>
pub fn dmap_data(&self) -> Option<&[u8]>
Delta character mapping table data.
See the DMAP specification.
Sourcepub fn dsig_data(&self) -> Option<&[u8]>
pub fn dsig_data(&self) -> Option<&[u8]>
Digital signature table data.
See the DSIG specification.
Sourcepub fn ebdt_data(&self) -> Option<&[u8]>
pub fn ebdt_data(&self) -> Option<&[u8]>
Embedded bitmap data table data.
See the EBDT specification.
Sourcepub fn eblc_data(&self) -> Option<&[u8]>
pub fn eblc_data(&self) -> Option<&[u8]>
Embedded bitmap location data table data.
See the EBLC specification.
Sourcepub fn fvar_data(&self) -> Option<&[u8]>
pub fn fvar_data(&self) -> Option<&[u8]>
Font variations table data.
See the fvar specification.
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.
Sourcepub fn gdef_data(&self) -> Option<&[u8]>
pub fn gdef_data(&self) -> Option<&[u8]>
Glyph definition table data.
See the GDEF specification.
Sourcepub fn glyf_data(&self) -> Option<&[u8]>
pub fn glyf_data(&self) -> Option<&[u8]>
TrueType glyph data table data.
See the glyf specification.
Sourcepub fn glyf_extended_data(&self) -> Option<&[u8]>
pub fn glyf_extended_data(&self) -> Option<&[u8]>
Extended glyph data table data.
See ISO/IEC 14496-22:2026, 5.2.8.
Sourcepub fn gpos_data(&self) -> Option<&[u8]>
pub fn gpos_data(&self) -> Option<&[u8]>
Glyph positioning table data.
See the GPOS specification.
Sourcepub fn gsub_data(&self) -> Option<&[u8]>
pub fn gsub_data(&self) -> Option<&[u8]>
Glyph substitution table data.
See the GSUB specification.
Sourcepub fn gvar_data(&self) -> Option<&[u8]>
pub fn gvar_data(&self) -> Option<&[u8]>
Glyph variation table data.
See the gvar specification.
Sourcepub fn gvar_extended_data(&self) -> Option<&[u8]>
pub fn gvar_extended_data(&self) -> Option<&[u8]>
Extended glyph variation table data.
See ISO/IEC 14496-22:2026, 7.3.9.
Sourcepub fn hdmx_data(&self) -> Option<&[u8]>
pub fn hdmx_data(&self) -> Option<&[u8]>
Horizontal device metrics data.
See the hdmx specification.
Sourcepub fn hhea_data(&self) -> Option<&[u8]>
pub fn hhea_data(&self) -> Option<&[u8]>
Horizontal header table data.
See the hhea specification.
Sourcepub fn hhea_extended_data(&self) -> Option<&[u8]>
pub fn hhea_extended_data(&self) -> Option<&[u8]>
Extended horizontal header table data.
See ISO/IEC 14496-22:2026, 5.1.10.
Sourcepub fn hmtx_data(&self) -> Option<&[u8]>
pub fn hmtx_data(&self) -> Option<&[u8]>
Horizontal metrics table data.
See the hmtx specification.
Sourcepub fn hmtx_extended_data(&self) -> Option<&[u8]>
pub fn hmtx_extended_data(&self) -> Option<&[u8]>
Extended horizontal metrics table data.
See ISO/IEC 14496-22:2026, 5.1.11.
Sourcepub fn hvar_data(&self) -> Option<&[u8]>
pub fn hvar_data(&self) -> Option<&[u8]>
Horizontal metrics variation table data.
See the HVAR specification.
Sourcepub fn ift_data(&self) -> Option<&[u8]>
pub fn ift_data(&self) -> Option<&[u8]>
Incremental font transfer table data.
See the IFT specification.
Sourcepub fn iftx_data(&self) -> Option<&[u8]>
pub fn iftx_data(&self) -> Option<&[u8]>
Incremental font transfer table data.
See the IFTX specification.
Sourcepub fn kerx_data(&self) -> Option<&[u8]>
pub fn kerx_data(&self) -> Option<&[u8]>
Extended kerning table data.
See the kerx specification.
Sourcepub fn loca_data(&self) -> Option<&[u8]>
pub fn loca_data(&self) -> Option<&[u8]>
Index to location table data.
See the loca specification.
Sourcepub fn loca_extended_data(&self) -> Option<&[u8]>
pub fn loca_extended_data(&self) -> Option<&[u8]>
Extended index to location table data.
See ISO/IEC 14496-22:2026, 5.2.9.
Sourcepub fn math_data(&self) -> Option<&[u8]>
pub fn math_data(&self) -> Option<&[u8]>
Mathematical typesetting table data.
See the MATH specification.
Sourcepub fn maxp_data(&self) -> Option<&[u8]>
pub fn maxp_data(&self) -> Option<&[u8]>
Maximum profile table data.
See the maxp specification.
Sourcepub fn maxp_extended_data(&self) -> Option<&[u8]>
pub fn maxp_extended_data(&self) -> Option<&[u8]>
Extended maximum profile table data.
See ISO/IEC 14496-22:2026, 5.1.12.
Sourcepub fn mort_data(&self) -> Option<&[u8]>
pub fn mort_data(&self) -> Option<&[u8]>
Metamorphosis table (deprecated) data.
See the mort specification.
Sourcepub fn morx_data(&self) -> Option<&[u8]>
pub fn morx_data(&self) -> Option<&[u8]>
Extended metamorphosis table data.
See the morx specification.
Sourcepub fn mvar_data(&self) -> Option<&[u8]>
pub fn mvar_data(&self) -> Option<&[u8]>
Metrics variation table data.
See the MVAR specification.
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.
Sourcepub fn post_data(&self) -> Option<&[u8]>
pub fn post_data(&self) -> Option<&[u8]>
PostScript information table data.
See the post specification.
Sourcepub fn prep_data(&self) -> Option<&[u8]>
pub fn prep_data(&self) -> Option<&[u8]>
Control value program table data.
See the prep specification.
Sourcepub fn sbix_data(&self) -> Option<&[u8]>
pub fn sbix_data(&self) -> Option<&[u8]>
Standard bitmap graphics table data.
See the sbix specification.
Sourcepub fn stat_data(&self) -> Option<&[u8]>
pub fn stat_data(&self) -> Option<&[u8]>
Style attributes table data.
See the STAT specification.
Sourcepub fn svg_data(&self) -> Option<&[u8]>
pub fn svg_data(&self) -> Option<&[u8]>
Scalable vector graphics table data.
See the SVG specification.
Sourcepub fn varc_data(&self) -> Option<&[u8]>
pub fn varc_data(&self) -> Option<&[u8]>
Variable composite/component table data.
See the VARC specification.
Sourcepub fn vhea_data(&self) -> Option<&[u8]>
pub fn vhea_data(&self) -> Option<&[u8]>
Vertical header table data.
See the vhea specification.
Sourcepub fn vhea_extended_data(&self) -> Option<&[u8]>
pub fn vhea_extended_data(&self) -> Option<&[u8]>
Extended vertical header table data.
See ISO/IEC 14496-22:2026, 5.6.13.
Sourcepub fn vmtx_data(&self) -> Option<&[u8]>
pub fn vmtx_data(&self) -> Option<&[u8]>
Vertical metrics table data.
See the vmtx specification.
Sourcepub fn vmtx_extended_data(&self) -> Option<&[u8]>
pub fn vmtx_extended_data(&self) -> Option<&[u8]>
Extended vertical metrics table data.
See ISO/IEC 14496-22:2026, 5.6.14.
Trait Implementations§
Source§impl<'a> TableProvider<'a> for &'a Tables
impl<'a> TableProvider<'a> for &'a Tables
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.
fn data_for_tag(&self, _tag: Tag) -> Option<FontData<'a>>
fn head(&self) -> Result<Head<'a>, ReadError>
fn name(&self) -> Result<Name<'a>, ReadError>
Source§fn hhea(&self) -> Result<Hhea<'a>, ReadError>
fn hhea(&self) -> Result<Hhea<'a>, ReadError>
hhea table only. A font may carry its metrics header in
HHEA instead; selected_hhea chooses between them.Source§fn vhea(&self) -> Result<Vhea<'a>, ReadError>
fn vhea(&self) -> Result<Vhea<'a>, ReadError>
vhea table only. A font may carry its vertical metrics
header in VHEA instead; selected_vhea chooses
between them.Source§fn hhea_extended(&self) -> Result<HheaExtended<'a>, ReadError>
fn hhea_extended(&self) -> Result<HheaExtended<'a>, ReadError>
Source§fn vhea_extended(&self) -> Result<VheaExtended<'a>, ReadError>
fn vhea_extended(&self) -> Result<VheaExtended<'a>, ReadError>
fn hmtx(&self) -> Result<Hmtx<'a>, ReadError>
Source§fn hmtx_extended(&self) -> Result<HmtxExtended<'a>, ReadError>
fn hmtx_extended(&self) -> Result<HmtxExtended<'a>, ReadError>
fn hdmx(&self) -> Result<Hdmx<'a>, ReadError>
fn vmtx(&self) -> Result<Vmtx<'a>, ReadError>
Source§fn vmtx_extended(&self) -> Result<VmtxExtended<'a>, ReadError>
fn vmtx_extended(&self) -> Result<VmtxExtended<'a>, ReadError>
fn vorg(&self) -> Result<Vorg<'a>, ReadError>
fn fvar(&self) -> Result<Fvar<'a>, ReadError>
fn avar(&self) -> Result<Avar<'a>, ReadError>
fn hvar(&self) -> Result<Hvar<'a>, ReadError>
fn vvar(&self) -> Result<Vvar<'a>, ReadError>
fn mvar(&self) -> Result<Mvar<'a>, ReadError>
Source§fn maxp(&self) -> Result<Maxp<'a>, ReadError>
fn maxp(&self) -> Result<Maxp<'a>, ReadError>
maxp table only. A font with more than 65535 glyphs
carries its glyph count in MAXP; selected_maxp
chooses between them.Source§fn maxp_extended(&self) -> Result<MaxpExtended<'a>, ReadError>
fn maxp_extended(&self) -> Result<MaxpExtended<'a>, ReadError>
fn os2(&self) -> Result<Os2<'a>, ReadError>
fn post(&self) -> Result<Post<'a>, ReadError>
fn gasp(&self) -> Result<Gasp<'a>, ReadError>
Source§fn glyf(&self) -> Result<Glyf<'a>, ReadError>
fn glyf(&self) -> Result<Glyf<'a>, ReadError>
glyf table only. A font may carry its outlines in GLYF and
LOCA instead; selected_glyf_loca chooses
between the pairs.Source§fn glyf_extended(&self) -> Result<Glyf<'a>, ReadError>
fn glyf_extended(&self) -> Result<Glyf<'a>, ReadError>
Source§fn loca_extended(
&self,
is_long: impl Into<Option<bool>>,
) -> Result<Loca<'a>, ReadError>
fn loca_extended( &self, is_long: impl Into<Option<bool>>, ) -> Result<Loca<'a>, ReadError>
Source§fn gvar(&self) -> Result<Gvar<'a>, ReadError>
fn gvar(&self) -> Result<Gvar<'a>, ReadError>
gvar table only. A font may carry its glyph variations in
GVAR instead; selected_gvar chooses between
them.Source§fn gvar_extended(&self) -> Result<GvarExtended<'a>, ReadError>
fn gvar_extended(&self) -> Result<GvarExtended<'a>, ReadError>
GVAR table only (ISO/IEC 14496-22:2026).