TextAttribute.forName

atk.types.TextAttribute forName(string name)

Get the #AtkTextAttribute type corresponding to a text attribute name.

Parameters

namea string which is the (non-localized) name of an ATK text attribute.

Returns

the #AtkTextAttribute enumerated type corresponding to the specified

name, or #ATK_TEXT_ATTRIBUTE_INVALID if no matching text attribute is found.