Package: pango

Function pango:gravity-for-script

Lambda List

pango:gravity-for-script (script gravity hint)

Arguments

script -- a pango:script value to query
gravity -- a base pango:gravity value of the paragraph
hint -- a pango:gravity-hint value with the orientation hint

Return Value

Resolved pango:gravity value suitable to use for a run of text with script.

Details

Based on the script, base gravity, and hint, returns actual gravity to use in laying out a single pango:item instance. If the gravity argument is :auto, it is first replaced with the preferred gravity of script. To get the preferred gravity of a script, pass the :auto and :strong values in.
 

See also

2024-2-22