pub enum TableTag {
Show 26 variants
Cmap,
Head,
Hhea,
Hmtx,
Maxp,
Name,
Os2,
Post,
Vhea,
Vmtx,
Cvt,
Fpgm,
Prep,
Glyf,
Loca,
Cff,
Fvar,
Avar,
Gvar,
Gsub,
Gpos,
Gdef,
Stat,
Dsig,
Base,
Kern,
}Expand description
The subset of SFNT table tags this parser knows by name.
Typed accessors on crate::FontRef accept this enum; arbitrary
(unknown) tags are reachable through crate::FontRef::table_by_tag with
a raw Tag.
Variants§
Cmap
Character-to-glyph mapping.
Head
Font header.
Hhea
Horizontal header.
Hmtx
Horizontal metrics.
Maxp
Maximum profile.
Name
Naming table.
Os2
OS/2 — Windows metrics.
Post
PostScript table.
Vhea
Vertical header.
Vmtx
Vertical metrics.
Cvt
Control value table.
Fpgm
Font program.
Prep
CVT program.
Glyf
Glyph data (TrueType outlines).
Loca
Index to location.
Cff
Compact Font Format (CFF) outlines.
Fvar
Font variations — axis data.
Avar
Font variations — axis segment maps.
Gvar
Font variations — glyph deltas.
Gsub
Glyph substitution.
Gpos
Glyph positioning.
Gdef
Glyph definition.
Stat
Style attributes.
Dsig
Digital signature.
Base
Baseline table.
Kern
Kerning.
Implementations§
Source§impl TableTag
impl TableTag
Sourcepub fn from_bytes(tag: &RawTag) -> Result<Self, ParseError>
pub fn from_bytes(tag: &RawTag) -> Result<Self, ParseError>
Look up a known tag by its raw bytes.
§Errors
ParseError::UnknownTableTag when the bytes do not name a tag in
TableTag::ALL.
Sourcepub const fn to_tag(self) -> Tag
pub const fn to_tag(self) -> Tag
The font_types::Tag for this table.