Previous: Selecting font sizes, Up: Fonts



4.4.2 Font selection

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:

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.

Bugs

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).

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