[ CCode ( array_length_pos = 0.1 ) ]
[ Version ( since = "1.22" ) ]
public unowned Script[]? get_scripts ()

Determines the scripts used to to write this.

If nothing is known about the language tag this, or if this is null , then null is returned. The list of scripts returned starts with the script that the language uses most and continues to the one it uses least.

The value num_script points at will be set to the number of scripts in the returned array (or zero if null is returned).

Most languages use only one script for writing, but there are some that use two (Latin and Cyrillic for example), and a few use three (Japanese for example). Applications should not make any assumptions on the maximum number of scripts returned though, except that it is positive if the return value is not null, and it is a small number.

The includes_script function uses this function internally.

Note: while the return value is declared as PangoScript, the returned values are from the GUnicodeScript enumeration, which may have more values. Callers need to handle unknown values.



a Language, or null


location to return number of scripts, or null


An array of Script values, with the number of entries in the array stored in return.length, or null if Pango does not have any information about this particular language tag (also the case if this is null). The returned array is owned by Pango and should not be modified or freed.