Type Alias read_fonts::tables::hdmx::Hdmx
source · pub type Hdmx<'a> = TableRef<'a, HdmxMarker>;
Expand description
The Horizontal Device Metrics table.
Aliased Type§
struct Hdmx<'a> { /* private fields */ }
Implementations§
source§impl<'a> Hdmx<'a>
impl<'a> Hdmx<'a>
sourcepub fn num_records(&self) -> u16
pub fn num_records(&self) -> u16
Number of device records.
sourcepub fn size_device_record(&self) -> u32
pub fn size_device_record(&self) -> u32
Size of device record, 32-bit aligned.
sourcepub fn records(&self) -> ComputedArray<'a, DeviceRecord<'a>>
pub fn records(&self) -> ComputedArray<'a, DeviceRecord<'a>>
Array of device records.
source§impl<'a> Hdmx<'a>
impl<'a> Hdmx<'a>
sourcepub fn record_for_size(&self, size: u8) -> Option<DeviceRecord<'a>>
pub fn record_for_size(&self, size: u8) -> Option<DeviceRecord<'a>>
Returns for the device record that exactly matches the given size (as ppem).