Type Alias CharsetFormat1

Source
pub type CharsetFormat1<'a> = TableRef<'a, CharsetFormat1Marker>;
Expand description

Charset format 1.

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl CharsetFormat1<'_>

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

Source

pub fn format(&self) -> u8

Format; =1

Source

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

Range1 array.

Trait Implementations§

Source§

impl<'a> Debug for CharsetFormat1<'a>

Source§

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

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

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