attrWeightNew

Create a new font weight attribute.

Parameters

weight pango.types.Weight

the weight

Return Value

Type: pango.attribute.Attribute

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