for_unichar
Description:
[ Version ( deprecated = true , deprecated_since = "1.44." , since = "1.4" ) ]
public static Script for_unichar (unichar ch)
public static Script for_unichar (unichar ch)
Warning: for_unichar is deprecated since 1.44..
Looks up the script for a particular character.
Note:
Use get_script
The script of a character is defined by Unicode Standard Annex 24: Script names .
No check is made for ch
being a valid Unicode character; if you pass in invalid character, the result is undefined.
Note that while the return type of this function is declared as `PangoScript`, as of Pango 1.18, this function simply returns the return value of [func@GLib.unichar_get_script]. Callers must be prepared to handle unknown values.
Parameters:
ch |
a Unicode character |
Returns:
the `PangoScript` for the character. |