attrBaselineShiftNew

fnpango.attribute.Attribute attrBaselineShiftNew(int shift)

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

shifteither a [pango.types.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

the newly allocated

[pango.attribute.Attribute], which should be freed with [pango.attribute.Attribute.destroy]