RulesetDescription
Added in version 1.18.
- class RulesetDescription(*args, **kwargs)
- Constructors:
RulesetDescription()
Methods
- class RulesetDescription
- equal(desc2: RulesetDescription) bool
Compares two ruleset descriptions for equality.
Two ruleset descriptions are considered equal if the rulesets they describe are provably identical. This means that their script, language, and all feature sets should be equal.
For static feature sets, the array addresses are compared directly, while for other features, the list of features is compared one by one.(Two ruleset descriptions may result in identical rulesets being created, but still compare
False
.)Added in version 1.18.
- Parameters:
desc2 – a ruleset description
Fields
- class RulesetDescription
- language
A
PangoLanguage
- n_other_features
Length of
other_features
, or 0.
- n_static_gpos_features
Length of
static_gpos_features
, or 0.
- n_static_gsub_features
Length of
static_gsub_features
, or 0.
- other_features
Map of extra features to add to both GSUB and GPOS. Unlike the static maps, this pointer need not live beyond the life of function calls taking this struct.
- script
A
PangoScript
- static_gpos_features
Static map of GPOS features
- static_gsub_features
Static map of GSUB features