Package: pango

Function pango:language-scripts

Lambda List

pango:language-scripts (language)

Arguments

language -- a pango:language instance

Return Value

The list with pango:script values, or nil if Pango does not have any information about this particular language tag, also the case if language is nil.

Details

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

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 nil, and it is a small number.
 

See also

2025-2-15