Name
pcontext:GetGravity -- get gravity
Synopsis
gravity = pcontext:GetGravity()
Function
Retrieves the gravity for the context.

This is similar to pcontext:GetBaseGravity(), except for when the base gravity is #PANGO_GRAVITY_AUTO for which pango.GravityForMatrix() is used to return the gravity from the current context matrix.

Inputs
none

Results
gravity
the resolved gravity for the context

Show TOC