Module allsorts_no_std::gsub[][src]

Glyph substitution (gsub) implementation.

The Glyph Substitution (GSUB) table provides data for substition of glyphs for appropriate rendering of scripts, such as cursively-connecting forms in Arabic script, or for advanced typographic effects, such as ligatures.

https://docs.microsoft.com/en-us/typography/opentype/spec/gsub

Structs

FeatureInfo
GsubFeatureMask
RawGlyph

Enums

Features

Type indicating the features to use when shaping text.

GlyphOrigin

Traits

GlyphData

merge is called during ligature substitution (i.e. merging of glyphs), and determines how the RawGlyph.extra_data field should be merged

Functions

apply

Perform glyph substitution according to the supplied features, script and language.

features_supported
get_lookups_cache_index
gsub_apply_lookup
gsub_feature_would_apply
gsub_lookup_would_apply
replace_missing_glyphs