Function

Pango-1.0Pangoattr_baseline_shift_newSince 1.50

  • Create a new baseline displacement attribute.

    The effect of this attribute is to shift the baseline of a run, relative to the run of preceding run.

    Baseline Shift

    Parameters

    • shift: number

      either a Pango.BaselineShift enumeration value or an absolute value (> 1024) in Pango units, relative to the baseline of the previous run. Positive values displace the text upwards.

    Returns Pango.Attribute

    the newly allocated Pango.Attribute, which should be freed with Pango.Attribute.destroy

    1.50