:right-sidebar: True RulesetDescription =================================================================== .. currentmodule:: gi.repository.PangoOT .. versionadded:: 1.18 .. class:: RulesetDescription(*args, **kwargs) :no-contents-entry: :Constructors: :: RulesetDescription() Methods ------- .. rst-class:: interim-class .. class:: RulesetDescription :no-index: .. method:: equal(desc2: ~gi.repository.PangoOT.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 :const:`False`.) .. versionadded:: 1.18 :param desc2: a ruleset description .. method:: free() -> None Frees a ruleset description allocated by :func:`~gi.repository.PangoOT.RulesetDescription.copy`. .. versionadded:: 1.18 .. method:: hash() -> int Computes a hash of a ``PangoOTRulesetDescription`` structure suitable to be used, for example, as an argument to :func:`~gi.repository.GLib.HashTable.new`. .. versionadded:: 1.18 Fields ------ .. rst-class:: interim-class .. class:: RulesetDescription :no-index: .. attribute:: language A ``PangoLanguage`` .. attribute:: n_other_features Length of ``other_features``, or 0. .. attribute:: n_static_gpos_features Length of ``static_gpos_features``, or 0. .. attribute:: n_static_gsub_features Length of ``static_gsub_features``, or 0. .. attribute:: 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. .. attribute:: script A ``PangoScript`` .. attribute:: static_gpos_features Static map of GPOS features .. attribute:: static_gsub_features Static map of GSUB features