Type Alias read_fonts::tables::hdmx::Hdmx

source ·
pub type Hdmx<'a> = TableRef<'a, HdmxMarker>;
Expand description

Aliased Type§

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

Implementations§

source§

impl<'a> Hdmx<'a>

source

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

A constructor that requires additional arguments.

This type requires some external state in order to be parsed.

source§

impl<'a> Hdmx<'a>

source

pub fn version(&self) -> u16

Table version number (set to 0).

source

pub fn num_records(&self) -> u16

Number of device records.

source

pub fn size_device_record(&self) -> u32

Size of device record, 32-bit aligned.

source

pub fn records(&self) -> ComputedArray<'a, DeviceRecord<'a>>

Array of device records.

source§

impl<'a> Hdmx<'a>

source

pub fn record_for_size(&self, size: u8) -> Option<DeviceRecord<'a>>

Returns for the device record that exactly matches the given size (as ppem).

Trait Implementations§

source§

impl<'a> Debug for Hdmx<'a>

source§

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

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

impl<'a> FontReadWithArgs<'a> for Hdmx<'a>

source§

fn read_with_args(data: FontData<'a>, args: &u16) -> Result<Self, ReadError>

read an item, using the provided args. Read more
source§

impl ReadArgs for Hdmx<'_>

source§

impl<'a> SomeTable<'a> for Hdmx<'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 Hdmx<'_>

source§

const TAG: Tag = _

hdmx