Gravity.getForScript

Returns the gravity to use in laying out a pango.item.Item.

The gravity is determined based on the script, base gravity, and hint.

If base_gravity is pango.types.Gravity.Auto, it is first replaced with the preferred gravity of script. To get the preferred gravity of a script, pass pango.types.Gravity.Auto and pango.types.GravityHint.Strong in.

Parameters

scriptpango.types.Script to query
baseGravitybase gravity of the paragraph
hintorientation hint

Returns

resolved gravity suitable to use for a run of text

with script