pub type CaretValueFormat3<'a> = TableRef<'a, CaretValueFormat3Marker>;
Expand description
Aliased Type§
struct CaretValueFormat3<'a> { /* private fields */ }
Implementations§
Source§impl<'a> CaretValueFormat3<'a>
impl<'a> CaretValueFormat3<'a>
Sourcepub fn caret_value_format(&self) -> u16
pub fn caret_value_format(&self) -> u16
Format identifier-format = 3
Sourcepub fn coordinate(&self) -> i16
pub fn coordinate(&self) -> i16
X or Y value, in design units
Sourcepub fn device_offset(&self) -> Offset16
pub fn device_offset(&self) -> Offset16
Offset to Device table (non-variable font) / Variation Index table (variable font) for X or Y value-from beginning of CaretValue table
Sourcepub fn device(&self) -> Result<DeviceOrVariationIndex<'a>, ReadError>
pub fn device(&self) -> Result<DeviceOrVariationIndex<'a>, ReadError>
Attempt to resolve device_offset
.
Source§impl<'a, T> TableRef<'a, T>
impl<'a, T> TableRef<'a, T>
Sourcepub fn resolve_offset<O: Offset, R: FontRead<'a>>(
&self,
offset: O,
) -> Result<R, ReadError>
pub fn resolve_offset<O: Offset, R: FontRead<'a>>( &self, offset: O, ) -> Result<R, ReadError>
Resolve the provided offset from the start of this table.
Sourcepub fn offset_data(&self) -> FontData<'a>
pub fn offset_data(&self) -> FontData<'a>
Return a reference to this table’s raw data.
We use this in the compile crate to resolve offsets.