PangoItem
.pangoGravityGetForScriptAndWidth(script, wide, base.gravity, hint)
script
PangoScript
] PangoScript
to querywide
TRUE
for wide characters as returned by gUnicharIswide()
base.gravity
PangoGravity
] base gravity of the paragraphhint
PangoGravityHint
] orientation hintPangoGravity
] resolved gravity suitable to use for a run of text
with script
and wide
.pangoGravityGetForScript
except
that this function makes a distinction between narrow/half-width and
wide/full-width characters also. Wide/full-width characters always
stand upright, that is, they always take the base gravity,
whereas narrow/full-width characters are always rotated in vertical
context.
If base.gravity
is PANGO_GRAVITY_AUTO
, it is first replaced with the
preferred gravity of script
.
Since 1.26