read_fonts::tables::layout

Type Alias Device

source
pub type Device<'a> = TableRef<'a, DeviceMarker>;
Expand description

Aliased Type§

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

Implementations§

source§

impl<'a> Device<'a>

source

pub fn start_size(&self) -> u16

Smallest size to correct, in ppem

source

pub fn end_size(&self) -> u16

Largest size to correct, in ppem

source

pub fn delta_format(&self) -> DeltaFormat

Format of deltaValue array data: 0x0001, 0x0002, or 0x0003

source

pub fn delta_value(&self) -> &'a [BigEndian<u16>]

Array of compressed data

source§

impl<'a> Device<'a>

source

pub fn iter(&self) -> impl Iterator<Item = i8> + 'a

Iterate over the decoded values for this device

Trait Implementations§

source§

impl<'a> Debug for Device<'a>

source§

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

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

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