Struct ttf_parser::RawFaceTables
source · pub struct RawFaceTables<'a> {Show 41 fields
pub head: &'a [u8],
pub hhea: &'a [u8],
pub maxp: &'a [u8],
pub bdat: Option<&'a [u8]>,
pub bloc: Option<&'a [u8]>,
pub cbdt: Option<&'a [u8]>,
pub cblc: Option<&'a [u8]>,
pub cff: Option<&'a [u8]>,
pub cmap: Option<&'a [u8]>,
pub colr: Option<&'a [u8]>,
pub cpal: Option<&'a [u8]>,
pub ebdt: Option<&'a [u8]>,
pub eblc: Option<&'a [u8]>,
pub glyf: Option<&'a [u8]>,
pub hmtx: Option<&'a [u8]>,
pub kern: Option<&'a [u8]>,
pub loca: Option<&'a [u8]>,
pub name: Option<&'a [u8]>,
pub os2: Option<&'a [u8]>,
pub post: Option<&'a [u8]>,
pub sbix: Option<&'a [u8]>,
pub svg: Option<&'a [u8]>,
pub vhea: Option<&'a [u8]>,
pub vmtx: Option<&'a [u8]>,
pub vorg: Option<&'a [u8]>,
pub gdef: Option<&'a [u8]>,
pub gpos: Option<&'a [u8]>,
pub gsub: Option<&'a [u8]>,
pub math: Option<&'a [u8]>,
pub ankr: Option<&'a [u8]>,
pub feat: Option<&'a [u8]>,
pub kerx: Option<&'a [u8]>,
pub morx: Option<&'a [u8]>,
pub trak: Option<&'a [u8]>,
pub avar: Option<&'a [u8]>,
pub cff2: Option<&'a [u8]>,
pub fvar: Option<&'a [u8]>,
pub gvar: Option<&'a [u8]>,
pub hvar: Option<&'a [u8]>,
pub mvar: Option<&'a [u8]>,
pub vvar: Option<&'a [u8]>,
}
Expand description
A list of all supported tables as raw data.
This type should be used in tandem with
Face::from_raw_tables()
.
This allows loading font faces not only from TrueType font files, but from any source. Mainly used for parsing WOFF.
Fields§
§head: &'a [u8]
§hhea: &'a [u8]
§maxp: &'a [u8]
§bdat: Option<&'a [u8]>
§bloc: Option<&'a [u8]>
§cbdt: Option<&'a [u8]>
§cblc: Option<&'a [u8]>
§cff: Option<&'a [u8]>
§cmap: Option<&'a [u8]>
§colr: Option<&'a [u8]>
§cpal: Option<&'a [u8]>
§ebdt: Option<&'a [u8]>
§eblc: Option<&'a [u8]>
§glyf: Option<&'a [u8]>
§hmtx: Option<&'a [u8]>
§kern: Option<&'a [u8]>
§loca: Option<&'a [u8]>
§name: Option<&'a [u8]>
§os2: Option<&'a [u8]>
§post: Option<&'a [u8]>
§sbix: Option<&'a [u8]>
§svg: Option<&'a [u8]>
§vhea: Option<&'a [u8]>
§vmtx: Option<&'a [u8]>
§vorg: Option<&'a [u8]>
§gdef: Option<&'a [u8]>
§gpos: Option<&'a [u8]>
§gsub: Option<&'a [u8]>
§math: Option<&'a [u8]>
§ankr: Option<&'a [u8]>
§feat: Option<&'a [u8]>
§kerx: Option<&'a [u8]>
§morx: Option<&'a [u8]>
§trak: Option<&'a [u8]>
§avar: Option<&'a [u8]>
§cff2: Option<&'a [u8]>
§fvar: Option<&'a [u8]>
§gvar: Option<&'a [u8]>
§hvar: Option<&'a [u8]>
§mvar: Option<&'a [u8]>
§vvar: Option<&'a [u8]>
Trait Implementations§
source§impl<'a> Clone for RawFaceTables<'a>
impl<'a> Clone for RawFaceTables<'a>
source§fn clone(&self) -> RawFaceTables<'a>
fn clone(&self) -> RawFaceTables<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Default for RawFaceTables<'a>
impl<'a> Default for RawFaceTables<'a>
source§fn default() -> RawFaceTables<'a>
fn default() -> RawFaceTables<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for RawFaceTables<'a>
impl<'a> RefUnwindSafe for RawFaceTables<'a>
impl<'a> Send for RawFaceTables<'a>
impl<'a> Sync for RawFaceTables<'a>
impl<'a> Unpin for RawFaceTables<'a>
impl<'a> UnwindSafe for RawFaceTables<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more