Type Alias CharsetFormat0

Source
pub type CharsetFormat0<'a> = TableRef<'a, CharsetFormat0Marker>;
Expand description

Charset format 0.

Aliased Type§

pub struct CharsetFormat0<'a> {
    pub(crate) shape: CharsetFormat0Marker,
    pub(crate) data: FontData<'a>,
}

Fields§

§shape: CharsetFormat0Marker§data: FontData<'a>

Implementations§

Source§

impl CharsetFormat0<'_>

Source

fn string_id(&self, glyph_id: GlyphId) -> Result<StringId, ReadError>

Source

fn glyph_id(&self, string_id: StringId) -> Result<GlyphId, ReadError>

Source§

impl<'a> CharsetFormat0<'a>

Source

pub fn format(&self) -> u8

Format; =0

Source

pub fn glyph(&self) -> &'a [BigEndian<u16>]

Glyph name array.

Trait Implementations§

Source§

impl<'a> Debug for CharsetFormat0<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> FontRead<'a> for CharsetFormat0<'a>

Source§

fn read(data: FontData<'a>) -> Result<Self, ReadError>

Read an instance of Self from the provided data, performing validation. Read more
Source§

impl<'a> SomeTable<'a> for CharsetFormat0<'a>

Source§

fn type_name(&self) -> &str

The name of this table
Source§

fn get_field(&self, idx: usize) -> Option<Field<'a>>

Access this table’s fields, in declaration order.