font
s<!-- --> <font id="question_mark_font"> <family>liberation serif</family> <point_size>14</point_size</point_size> </font> <font id="question_mark_font_bold"> <from>question_mark_font</from> <weight>heavy</weight> </font>
A font
's
id
attribute gives the label that
theme file uses to refer to this font.
An optional
from
specifies that this
font specification is based on another font. The other font's
definition gets copied, and this font's settings
modify the original font's setting.
Other elements in a font
:
foundry
and
family
specify the system font.
point_size
specifies the font's height
in points.
Alternatively
scale
multiplies the font's size by
a value. This is used together with
from
to make base the font's
size on another font's size.
Font sizes are approximate. The actual font size could slightly vary. Even an explicit pixel size may not produce a font with the given height. Some fonts' height can only scale to a small pixel multiple.
weight
of
thin
,
light
,
normal
,
medium
,
demibold
,
bold
,
heavy
, or
extrablack
.
slant
of
roman
,
italic
, or
oblique
.
width
of
condensed
,
normal
, or
expanded
.
A font-specific style
.
A spacing
of
proportional
,
dual
,
monospace
, or
charcell
.