Converts a PangoGravity value to its natural rotation in radians.
gravity should not be PANGO_GRAVITY_AUTO.
Note that Matrix.rotate takes angle in degrees, not radians.
So, to call Matrix.rotate with the output of this function
you should multiply it by (180. / G_PI).
Converts a PangoGravity value to its natural rotation in radians. gravity should not be PANGO_GRAVITY_AUTO.
Note that Matrix.rotate takes angle in degrees, not radians. So, to call Matrix.rotate with the output of this function you should multiply it by (180. / G_PI).