Type Alias read_fonts::tables::name::Name

source ·
pub type Name<'a> = TableRef<'a, NameMarker>;
Expand description

Aliased Type§

struct Name<'a> { /* private fields */ }

Implementations§

source§

impl<'a> Name<'a>

source

pub fn version(&self) -> u16

Table version number (0 or 1)

source

pub fn count(&self) -> u16

Number of name records.

source

pub fn storage_offset(&self) -> u16

Offset to start of string storage (from start of table).

source

pub fn name_record(&self) -> &'a [NameRecord]

The name records where count is the number of records.

source

pub fn lang_tag_count(&self) -> Option<u16>

Number of language-tag records.

source

pub fn lang_tag_record(&self) -> Option<&'a [LangTagRecord]>

The language-tag records where langTagCount is the number of records.

source§

impl<'a> Name<'a>

source

pub fn string_data(&self) -> FontData<'a>

The FontData containing the encoded name strings.

Trait Implementations§

source§

impl<'a> Debug for Name<'a>

source§

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

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

impl<'a> FontRead<'a> for Name<'a>

source§

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

Read an instace of Self from the provided data, performing validation. Read more
source§

impl<'a> SomeTable<'a> for Name<'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.
source§

impl TopLevelTable for Name<'_>

source§

const TAG: Tag = _

name