Functions¶
|
|
|
|
|
|
|
Details¶
- PangoOT.tag_from_language(language)¶
- Parameters:
language (
Pango.LanguageorNone) – APangoLanguage- Returns:
PangoOTTagbest matching language or %PANGO_OT_TAG_DEFAULT_LANGUAGE if none found or if language isNone.- Return type:
Finds the OpenType language-system tag best describing language.
New in version 1.18.
- PangoOT.tag_from_script(script)¶
- Parameters:
script (
Pango.Script) – APangoScript- Returns:
PangoOTTagcorresponding to script or %PANGO_OT_TAG_DEFAULT_SCRIPT if none found.- Return type:
Finds the OpenType script tag corresponding to script.
The
Pango.Script.COMMON,Pango.Script.INHERITED, andPango.Script.UNKNOWNscripts are mapped to the OpenType ‘DFLT’ script tag that is also defined as %PANGO_OT_TAG_DEFAULT_SCRIPT.Note that multiple
PangoScriptvalues may map to the same OpenType script tag. In particular,Pango.Script.HIRAGANAandPango.Script.KATAKANAboth map to the OT tag ‘kana’.New in version 1.18.
- PangoOT.tag_to_language(language_tag)¶
- Parameters:
language_tag (
int) – APangoOTTagOpenType language-system tag- Returns:
PangoLanguagebest matching language_tag orPangoLanguagecorresponding to the string “xx” if none found.- Return type:
Finds a
PangoLanguagecorresponding to language_tag.New in version 1.18.
- PangoOT.tag_to_script(script_tag)¶
- Parameters:
script_tag (
int) – APangoOTTagOpenType script tag- Returns:
PangoScriptcorresponding to script_tag orPango.Script.UNKNOWNif none found.- Return type:
Finds the
PangoScriptcorresponding to script_tag.The ‘DFLT’ script tag is mapped to
Pango.Script.COMMON.Note that an OpenType script tag may correspond to multiple
PangoScriptvalues. In such cases, thePangoScriptvalue with the smallest value is returned. In particular,Pango.Script.HIRAGANAandPango.Script.KATAKANAboth map to the OT tag ‘kana’. This function will returnPango.Script.HIRAGANAfor ‘kana’.New in version 1.18.