which should be freed with pango.attribute.Attribute.destroy.
attrVariantNew
fn
pango.attribute.Attribute attrVariantNew(pango.types.Variant variant)Create a new font variant attribute (normal or small caps).
Parameters
variant | the variant |
Returns
the newly allocated pango.attribute.Attribute,