getForScript
Returns the gravity to use in laying out a PangoItem
.
The gravity is determined based on the script, base gravity, and hint.
If @base_gravity is %PANGO_GRAVITY_AUTO, it is first replaced with the preferred gravity of @script. To get the preferred gravity of a script, pass %PANGO_GRAVITY_AUTO and %PANGO_GRAVITY_HINT_STRONG in.
Return
resolved gravity suitable to use for a run of text with @script
Since
1.16
Parameters
script
PangoScript
to query
baseGravity
base gravity of the paragraph
hint
orientation hint