TypeScript API Documentation for PANGO
API Version: 1.0
Library Version: 1.57.0
Generated with TypeDoc via ts-for-gir v4.0.0-beta.40
Since 1.16
Returns the gravity to use in laying out a Pango.Item.
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.GravityHint.STRONG in.
base_gravity
script
Pango.Script to query
base gravity of the paragraph
orientation hint
resolved gravity suitable to use for a run of text with script
1.16
Returns the gravity to use in laying out a Pango.Item.
The gravity is determined based on the script, base gravity, and hint.
If
base_gravityis Pango.Gravity.AUTO, it is first replaced with the preferred gravity ofscript. To get the preferred gravity of a script, pass Pango.Gravity.AUTO and Pango.GravityHint.STRONG in.