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.
pango.types.Script to query
base gravity of the paragraph
orientation hint
resolved gravity suitable to use for a run of text with script
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.