read_fonts::tables::hdmx

Type Alias 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> 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 TopLevelTable for Hdmx<'_>

Source§

const TAG: Tag = _

hdmx