Attribute.asLanguage

Returns the attribute cast to pango.attr_language.AttrLanguage.

This is mainly useful for language bindings.

class Attribute
asLanguage
()

Return Value

Type: pango.attr_language.AttrLanguage

The attribute as pango.attr_language.AttrLanguage, or null if it's not a language attribute