Struct FontTables
pub(crate) struct FontTables(TableSource);Expand description
Individual font table access.
Tuple Fields§
§0: TableSourceImplementations§
§impl FontTables
impl FontTables
pub fn cff2_data(&self) -> Option<&[u8]>
pub fn cff2_data(&self) -> Option<&[u8]>
Compact font format 2.0 table data.
See the CFF2 specification.
pub fn cblc_data(&self) -> Option<&[u8]>
pub fn cblc_data(&self) -> Option<&[u8]>
Color bitmap location table data.
See the CBLC specification.
pub fn cmap_data(&self) -> Option<&[u8]>
pub fn cmap_data(&self) -> Option<&[u8]>
Character to glyph mapping table data.
See the cmap specification.
pub fn ebdt_data(&self) -> Option<&[u8]>
pub fn ebdt_data(&self) -> Option<&[u8]>
Embedded bitmap data table data.
See the EBDT specification.
pub fn eblc_data(&self) -> Option<&[u8]>
pub fn eblc_data(&self) -> Option<&[u8]>
Embedded bitmap location data table data.
See the EBLC specification.
pub 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.
pub fn hvar_data(&self) -> Option<&[u8]>
pub fn hvar_data(&self) -> Option<&[u8]>
Horizontal metrics variation table data.
See the HVAR specification.
pub fn ift_data(&self) -> Option<&[u8]>
pub fn ift_data(&self) -> Option<&[u8]>
Incremental font transfer table data.
See the IFT specification.
pub fn iftx_data(&self) -> Option<&[u8]>
pub fn iftx_data(&self) -> Option<&[u8]>
Incremental font transfer table data.
See the IFTX specification.
pub fn math_data(&self) -> Option<&[u8]>
pub fn math_data(&self) -> Option<&[u8]>
Mathematical typesetting table data.
See the MATH specification.
pub fn morx_data(&self) -> Option<&[u8]>
pub fn morx_data(&self) -> Option<&[u8]>
Extended metamorphosis table data.
See the morx specification.
pub 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.
pub fn post_data(&self) -> Option<&[u8]>
pub fn post_data(&self) -> Option<&[u8]>
PostScript information table data.
See the post specification.
pub fn prep_data(&self) -> Option<&[u8]>
pub fn prep_data(&self) -> Option<&[u8]>
Control value program table data.
See the prep specification.
pub fn sbix_data(&self) -> Option<&[u8]>
pub fn sbix_data(&self) -> Option<&[u8]>
Standard bitmap graphics table data.
See the sbix specification.
pub fn svg_data(&self) -> Option<&[u8]>
pub fn svg_data(&self) -> Option<&[u8]>
Scalable vector graphics table data.
See the SVG specification.
§impl FontTables
impl FontTables
pub 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§
§impl<'a> TableProvider<'a> for &'a FontTables
impl<'a> TableProvider<'a> for &'a FontTables
§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.
§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.