Font selection for the standard fonts, TeX's Computer Modern fonts,
can also be adjusted with a more fine-grained mechanism. By setting
the object properties described below, you can select a different font;
all three mechanisms work for every object that supports
font-interface
:
font-encoding
is a symbol that sets layout of the glyphs. Choices include
text
for normal text, braces
(for piano staff braces),
music
(the standard music font, including ancient glyphs),
dynamic
(for dynamic signs) and number
for the number
font.
font-family
is a symbol indicating the general class of the typeface. Supported are
roman
(Computer Modern), sans
, and typewriter
.
font-shape
is a symbol indicating the shape of the font, there are typically
several font shapes available for each font family. Choices are
italic
, caps
, and upright
.
font-series
is a symbol indicating the series of the font. There are typically several
font series for each font family and shape. Choices are medium
and bold
.
Fonts selected in the way sketched above come from a predefined style sheet.
The font used for printing a object can be selected by setting
font-name
, e.g.
\override Staff.TimeSignature #'font-name = #"cmr17"
Any font can be used, as long as it is available to TeX. Possible
fonts include foreign fonts or fonts that do not belong to the
Computer Modern font family. The size of fonts selected in this way
can be changed with the font-magnification
property. For
example, 2.0
blows up all letters by a factor 2 in both
directions.
Init files: ly/declarations-init.ly contains hints how new fonts may be added to LilyPond.
No style sheet is provided for other fonts besides the TeX Computer Modern family.
Read comments on this page, or
add one.
This page is for LilyPond-2.2.6 (stable-branch). |