Function

Pango.attr_baseline_shift_new

Declaration [src]

PangoAttribute*
pango_attr_baseline_shift_new (
  int shift
)

Description [src]

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

Available since:1.50

Parameters

shift int
 

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.

Return value

Returns: PangoAttribute

the newly allocated PangoAttribute, which should be freed with pango_attribute_destroy()

The caller of the function takes ownership of the data, and is responsible for freeing it