Use [pango.font_description.FontDescription.getSetFields] to find out if the field was explicitly set or not.
FontDescription.getGravity
pango.types.Gravity getGravity()Gets the gravity field of a font description.
See [pango.font_description.FontDescription.setGravity].
Returns
the gravity field for the font description.