attr_baseline_shift_new


Description:


[ Version ( since = "1.50" ) ]
public Attribute attr_baseline_shift_new (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.

<picture> <source srcset="baseline-shift-dark.png" media="(prefers-color-scheme: dark)"> <img alt="Baseline Shift" src="baseline-shift-light.png"> </picture>

Parameters:

shift

either a `PangoBaselineShift` 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 `PangoAttribute`, which should be freed with [[email protected]]


Namespace: Pango
Package: pango



2022 vala-language.org