2.3 <PangoAttrFontDesc>

Structure: <PangoAttrFontDesc>

The <PangoAttrFontDesc> structure is used to store an attribute that sets all aspects of the font description at once.

Fields

attr

the common portion of the attribute

desc

the font description which is the value of this attribute

Procedures

Procedure: attr-font-desc:attr self ⇒ attr
Procedure: attr-font-desc:desc self ⇒ desc
Procedure: attr-font-desc:new desc ⇒ %return

Create a new font description attribute.

This attribute allows setting family, style, weight, variant, stretch, and size simultaneously.

desc

Passed: a <PangoFontDescription>.

the font description

%return

Returned: a <PangoAttribute>.

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