PgVertical.gravityGetForScript

Based on the script, base gravity, and hint, returns actual gravity to use in laying out a single #PangoItem.

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.

struct PgVertical
static
gravityGetForScript

Parameters

script PangoScript

#PangoScript to query

baseGravity PangoGravity

base gravity of the paragraph

hint PangoGravityHint

orientation hint

Return: resolved gravity suitable to use for a run of text with @script.

Meta

Since

1.16