Previous: Selecting font sizes, Up: Fonts



7.3.2 Font selection

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.

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.

See also

Init files: ly/declarations-init.ly contains hints how new fonts may be added to LilyPond.

Read comments on this page, or add one.

This page is for LilyPond-2.5.11 (development-branch).

Report errors to <bug-lilypond@gnu.org>.

Other languages: English.
Using automatic language selection.