By setting the object properties described below, you can select a font from the preconfigured font families. LilyPond has default support for the feta music fonts and TeX's Computer Modern text fonts.
font-encoding
is a symbol that sets layout of the glyphs. Choices include ec
for TeX EC font encoding, fetaBraces (for piano staff
braces), fetaMusic (the standard music font, including ancient
glyphs), fetaDynamic (for dynamic signs) and fetaNumber
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.
This page is for LilyPond-2.4.5 (stable-branch).