attrVariantNew

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

Parameters

variant pango.types.Variant

the variant

Return Value

Type: pango.attribute.Attribute

the newly allocated pango.attribute.Attribute, which should be freed with pango.attribute.Attribute.destroy.