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
Converts a Pango.Gravity value to its natural rotation in radians.
Note that Pango.Matrix.rotate takes angle in degrees, not radians. So, to call [method@Pango.Matrix,rotate] with the output of this function you should multiply it by (180. / G_PI).
gravity to query, should not be Pango.Gravity.AUTO
the rotation value corresponding to gravity.
gravity
1.16
Converts a Pango.Gravity value to its natural rotation in radians.
Note that Pango.Matrix.rotate takes angle in degrees, not radians. So, to call [method@Pango.Matrix,rotate] with the output of this function you should multiply it by (180. / G_PI).