D.3 X Resources for Faces
You can use resources to customize the appearance of particular
faces (see Faces):
- face
.attributeForeground - Foreground color for face face.
- face
.attributeBackground - Background color for face face.
- face
.attributeUnderline - Underline flag for face face. Use ‘on’ or ‘true’ for
yes.
- face
.attributeStrikeThrough- face
.attributeOverline- face
.attributeBox- face
.attributeInverse - Likewise, for other boolean font attributes.
- face
.attributeStipple - The name of a pixmap data file to use for the stipple pattern, or
false to not use stipple for the face face.
- face
.attributeBackgroundPixmap - The background pixmap for the face face. Should be a name of a
pixmap file or
false.
- face
.attributeFont - Font name (full XFD name or valid X abbreviation) for face face.
Instead of this, you can specify the font through separate attributes.
Instead of using attributeFont to specify a font name, you can
select a font through these separate attributes:
- face
.attributeFamily - Font family for face face.
- face
.attributeHeight - Height of the font to use for face face: either an integer
specifying the height in units of 1/10pt, or a floating point
number that specifies a scale factor to scale the underlying face's
default font, or a function to be called with the default height which
will return a new height.
- face
.attributeWidth- face
.attributeWeight- face
.attributeSlant - Each of these resources corresponds to a like-named font attribute,
and you write the resource value the same as the symbol you would use
for the font attribute value.
- face
.attributeBold - Bold flag for face face—instead of
attributeWeight. Use ‘on’ or ‘true’ for
yes.
- face
.attributeItalic - Italic flag for face face—instead of
attributeSlant.