Pango.Gravity.get_for_script
Description: Reference for Pango.Gravity.get_for_script

### Function

# Pango Gravityget_for_script

#### Declaration [src]

    PangoGravity
    pango_gravity_get_for_script (
      PangoScript script,
      PangoGravity base_gravity,
      PangoGravityHint hint
    )

#### Description [src]

Returns the gravity to use in laying out a `PangoItem`.

The gravity is determined based on the script, base gravity, and hint.

If `base_gravity` is `PANGO_GRAVITY_AUTO`, it is first replaced with the preferred gravity of `script`. To get the preferred gravity of a script, pass `PANGO_GRAVITY_AUTO` and `PANGO_GRAVITY_HINT_STRONG` in.

Available since: | 1.16

#### Parameters

`script` | `PangoScript`
| `PangoScript` to query.
`base_gravity` | `PangoGravity`
| Base gravity of the paragraph.
`hint` | `PangoGravityHint`
| Orientation hint.

#### Return value

Returns: | `PangoGravity`
| Resolved gravity suitable to use for a run of text with `script`.