read_fonts::tables::layout

Type Alias Script

source
pub type Script<'a> = TableRef<'a, ScriptMarker>;
Expand description

Aliased Type§

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

Implementations§

source§

impl<'a> Script<'a>

source

pub fn default_lang_sys_offset(&self) -> Nullable<Offset16>

Offset to default LangSys table, from beginning of Script table — may be NULL

source

pub fn default_lang_sys(&self) -> Option<Result<LangSys<'a>, ReadError>>

Attempt to resolve default_lang_sys_offset.

source

pub fn lang_sys_count(&self) -> u16

Number of LangSysRecords for this script — excluding the default LangSys

source

pub fn lang_sys_records(&self) -> &'a [LangSysRecord]

Array of LangSysRecords, listed alphabetically by LangSys tag

Trait Implementations§

source§

impl<'a> FontRead<'a> for Script<'a>

source§

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

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