pub type Vorg<'a> = TableRef<'a, VorgMarker>;
Expand description
The VORG (Vertical Origin) table.
Aliased Type§
struct Vorg<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Vorg<'a>
impl<'a> Vorg<'a>
Sourcepub fn version(&self) -> MajorMinor
pub fn version(&self) -> MajorMinor
Major/minor version number. Set to 1.0.
Sourcepub fn default_vert_origin_y(&self) -> i16
pub fn default_vert_origin_y(&self) -> i16
The y coordinate of a glyph’s vertical origin, in the font’s design coordinate system, to be used if no entry is present for the glyph in the vertOriginYMetrics array.
Sourcepub fn num_vert_origin_y_metrics(&self) -> u16
pub fn num_vert_origin_y_metrics(&self) -> u16
Number of elements in the vertOriginYMetrics array.
Sourcepub fn vert_origin_y_metrics(&self) -> &'a [VertOriginYMetrics]
pub fn vert_origin_y_metrics(&self) -> &'a [VertOriginYMetrics]
Array of VertOriginYMetrics records, sorted by glyph ID.
Source§impl Vorg<'_>
impl Vorg<'_>
Sourcepub fn vertical_origin_y(&self, glyph_id: GlyphId) -> i16
pub fn vertical_origin_y(&self, glyph_id: GlyphId) -> i16
Returns the y coordinate of the of the glyph’s vertical origin.
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.