2.9 <PangoAttrSize>

Structure: <PangoAttrSize>

The <PangoAttrSize> structure is used to represent attributes which set font size.

Fields

attr

the common portion of the attribute

size

size of font, in units of 1/PANGO_SCALE of a point (for size) or of a device unit (for absolute-size)

absolute

whether the font size is in device units or points. This field is only present for compatibility with Pango-1.8.0 (absolute-size was added in 1.8.1); and always will be #f for size and #t for absolute-size.

Procedures

Procedure: attr-size:absolute self ⇒ absolute
Procedure: attr-size:attr self ⇒ attr
Procedure: attr-size:new size ⇒ %return

Create a new font-size attribute in fractional points.

size

Passed: a 32-bit integer.

the font size, in PANGO_SCALE-ths of a point

%return

Returned: a <PangoAttribute>.

the newly allocated <PangoAttribute>, which should be freed with attribute:destroy

Procedure: attr-size:new-absolute size ⇒ %return

Create a new font-size attribute in device units.

size

Passed: a 32-bit integer.

the font size, in PANGO_SCALE-ths of a device unit

%return

Returned: a <PangoAttribute>.

the newly allocated <PangoAttribute>, which should be freed with attribute:destroy

Procedure: attr-size:size self ⇒ size