Constants

Details

PangoOT.ALL_GLYPHS = 65535

This is used as the property bit in PangoOT.Ruleset.add_feature() when a feature should be applied to all glyphs.

New in version 1.16.

PangoOT.DEFAULT_LANGUAGE = 65535

This is used as the language index in PangoOT.Info.find_feature() when the default language system of the script is desired.

It is also returned by PangoOT.Info.find_language() if the requested language is not found, or the requested language tag was PANGO_OT_TAG_DEFAULT_LANGUAGE. The end result is that one can always call PangoOT.tag_from_language() followed by PangoOT.Info.find_language() and pass the result to PangoOT.Info.find_feature() without having to worry about falling back to default language system explicitly.

New in version 1.16.

PangoOT.NO_FEATURE = 65535

This is used as a feature index that represent no feature, that is, should be skipped. It may be returned as feature index by PangoOT.Info.find_feature() if the feature is not found, and PangoOT.Ruleset.add_feature() function automatically skips this value, so no special handling is required by the user.

New in version 1.18.

PangoOT.NO_SCRIPT = 65535

This is used as a script index that represent no script, that is, when the requested script was not found, and a default (‘DFLT’) script was not found either. It may be returned as script index by PangoOT.Info.find_script() if the script or a default script are not found, all other functions taking a script index essentially return if the input script index is this value, so no special handling is required by the user.

New in version 1.18.