Type Alias CharsetFormat2

Source
pub type CharsetFormat2<'a> = TableRef<'a, CharsetFormat2Marker>;
Expand description

Charset format 2.

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl CharsetFormat2<'_>

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> CharsetFormat2<'a>

Source

pub fn format(&self) -> u8

Format; =2

Source

pub fn ranges(&self) -> &'a [CharsetRange2]

Range2 array.

Trait Implementations§

Source§

impl<'a> Debug for CharsetFormat2<'a>

Source§

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

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

impl<'a> FontRead<'a> for CharsetFormat2<'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 CharsetFormat2<'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.