attr_baseline_shift_new
Description:
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 [method@Pango.Attribute.destroy] |
Namespace: Pango
Package: pango