Finds the gravity that best matches the rotation component in a `PangoMatrix`.
a `PangoMatrix`
the gravity of matrix, which will never be pango_gravity_auto, or pango_gravity_south if matrix is null
matrix