pub(crate) struct FontTables(TableSource);Expand description
Individual font table access.
Tuple Fields§
§0: TableSourceImplementations§
Source§impl FontTables
impl FontTables
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 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 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 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 hmtx_data(&self) -> Option<&[u8]>
pub fn hmtx_data(&self) -> Option<&[u8]>
Horizontal metrics table data.
See the hmtx specification.
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 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 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 vmtx_data(&self) -> Option<&[u8]>
pub fn vmtx_data(&self) -> Option<&[u8]>
Vertical metrics table data.
See the vmtx specification.
Source§impl FontTables
impl FontTables
Sourcepub fn new(
source: impl Into<FontSource>,
index: u32,
) -> Result<FontTables, ReadError>
pub fn new( source: impl Into<FontSource>, index: u32, ) -> Result<FontTables, ReadError>
Creates a new set of font tables for the given source.
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.