The <PangoAttrType> distinguishes between
different types of attributes.
Along with the predefined values, it is possible to allocate additional
values for custom attributes using AttrType.register. The
predefined values are given below. The type of structure used to store
the attribute is listed in parentheses after the description.
invaliddoes not happen
languagelanguage (<PangoAttrLanguage>)
familyfont family name list (<PangoAttrString>)
stylefont slant style (<PangoAttrInt>)
weightfont weight (<PangoAttrInt>)
variantfont variant (normal or small caps)
(<PangoAttrInt>)
stretchfont stretch (<PangoAttrInt>)
sizefont size in points scaled by PANGO_SCALE
(<PangoAttrInt>)
font-descfont description (<PangoAttrFontDesc>)
foregroundforeground color (<PangoAttrColor>)
backgroundbackground color (<PangoAttrColor>)
underlinewhether the text has an underline (<PangoAttrInt>)
strikethroughwhether the text is struck-through
(<PangoAttrInt>)
risebaseline displacement (<PangoAttrInt>)
shapeshape (<PangoAttrShape>)
scalefont size scale factor (<PangoAttrFloat>)
fallbackwhether fallback is enabled (<PangoAttrInt>)
letter-spacingletter spacing (PangoAttrInt)
underline-colorunderline color (<PangoAttrColor>)
strikethrough-colorstrikethrough color (<PangoAttrColor>)
absolute-sizefont size in pixels scaled by PANGO_SCALE
(<PangoAttrInt>)
gravitybase text gravity (<PangoAttrInt>)
gravity-hintgravity hint (<PangoAttrInt>)
font-featuresOpenType font features
(<PangoAttrFontFeatures>). Since 1.38
foreground-alphaforeground alpha (<PangoAttrInt>). Since 1.38
background-alphabackground alpha (<PangoAttrInt>). Since 1.38
allow-breakswhether breaks are allowed (<PangoAttrInt>). Since
1.44
showhow to render invisible characters
(<PangoAttrInt>). Since 1.44
insert-hyphenswhether to insert hyphens at intra-word line breaks
(<PangoAttrInt>). Since 1.44
overlinewhether the text has an overline (<PangoAttrInt>).
Since 1.46
overline-coloroverline color (<PangoAttrColor>). Since 1.46
line-heightline height factor (<PangoAttrFloat>). Since:
1.50
absolute-line-heightline height (<PangoAttrInt>). Since: 1.50
text-transformwordoverride segmentation to classify the range of the attribute as a single
word (<PangoAttrInt>). Since 1.50
sentenceoverride segmentation to classify the range of the attribute as a single
sentence (<PangoAttrInt>). Since 1.50
baseline-shiftbaseline displacement (<PangoAttrInt>). Since
1.50
font-scalefont-relative size change (<PangoAttrInt>). Since
1.50
Fetches the attribute type name.
The attribute type name is the string passed in when registering the
type using attr-type:register.
The returned value is an interned string (see
intern-string for what that means) that
should not be modified or freed.
Passed: a <PangoAttrType>, or one of its symbols.
an attribute type ID to fetch the name for
Returned: a string, or #f.
the type ID name (which may be #f), or #f if type is
a built-in Pango attribute type or invalid.
Allocate a new attribute type ID.
The attribute type name can be accessed later by using
attr-type:get-name.
Passed: a string.
an identifier for the type
Returned: a <PangoAttrType>.
the new type ID.