pub type Gpos<'a> = TableRef<'a, GposMarker>;
Expand description
Aliased Type§
pub struct Gpos<'a> {
pub(crate) shape: GposMarker,
pub(crate) data: FontData<'a>,
}
Fields§
§shape: GposMarker
§data: FontData<'a>
Implementations§
Source§impl Gpos<'_>
impl Gpos<'_>
Sourcepub fn collect_features(
&self,
scripts: &IntSet<Tag>,
languages: &IntSet<Tag>,
features: &IntSet<Tag>,
) -> Result<IntSet<u16>, ReadError>
pub fn collect_features( &self, scripts: &IntSet<Tag>, languages: &IntSet<Tag>, features: &IntSet<Tag>, ) -> Result<IntSet<u16>, ReadError>
Return a set of all feature indices underneath the specified scripts, languages and features
Source§impl<'a> Gpos<'a>
impl<'a> Gpos<'a>
Sourcepub fn version(&self) -> MajorMinor
pub fn version(&self) -> MajorMinor
The major and minor version of the GPOS table, as a tuple (u16, u16)
Sourcepub fn script_list_offset(&self) -> Offset16
pub fn script_list_offset(&self) -> Offset16
Offset to ScriptList table, from beginning of GPOS table
Sourcepub fn script_list(&self) -> Result<ScriptList<'a>, ReadError>
pub fn script_list(&self) -> Result<ScriptList<'a>, ReadError>
Attempt to resolve script_list_offset
.
Sourcepub fn feature_list_offset(&self) -> Offset16
pub fn feature_list_offset(&self) -> Offset16
Offset to FeatureList table, from beginning of GPOS table
Sourcepub fn feature_list(&self) -> Result<FeatureList<'a>, ReadError>
pub fn feature_list(&self) -> Result<FeatureList<'a>, ReadError>
Attempt to resolve feature_list_offset
.
Sourcepub fn lookup_list_offset(&self) -> Offset16
pub fn lookup_list_offset(&self) -> Offset16
Offset to LookupList table, from beginning of GPOS table
Sourcepub fn lookup_list(&self) -> Result<PositionLookupList<'a>, ReadError>
pub fn lookup_list(&self) -> Result<PositionLookupList<'a>, ReadError>
Attempt to resolve lookup_list_offset
.
pub fn feature_variations_offset(&self) -> Option<Nullable<Offset32>>
Sourcepub fn feature_variations(
&self,
) -> Option<Result<FeatureVariations<'a>, ReadError>>
pub fn feature_variations( &self, ) -> Option<Result<FeatureVariations<'a>, ReadError>>
Attempt to resolve feature_variations_offset
.