Package: pango

Function pango-gravity-for-script

Lambda List

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

Arguments

script -- a pango-script value to query
base-gravity -- a base pango-gravity value of the paragraph
hint -- a pango-gravity-hint 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 PangoItem.

If base-gravity is :auto, it is first replaced with the preferred gravity of script. To get the preferred gravity of a script, pass :auto and :strong in.
 

See also

2021-1-5