unicharGetScript

fnglib.types.UnicodeScript unicharGetScript(dchar ch)

Looks up the #GUnicodeScript for a particular character (as defined by Unicode Standard Annex \#24). No check is made for ch being a valid Unicode character; if you pass in invalid character, the result is undefined.

This function is equivalent to [pango.global.scriptForUnichar] and the two are interchangeable.

Parameters

cha Unicode character

Returns

the #GUnicodeScript for the character.