attrVariantNew

Create a new font variant attribute (normal or small caps).

Parameters

variantthe variant

Returns

the newly allocated [pango.attribute.Attribute],

which should be freed with [pango.attribute.Attribute.destroy].