Entire document fonts

It is possible to change the fonts used in LilyPond’s default font families. Similar to single fonts (see Single entry fonts), font families are set up by using comma-separated lists of font family names, but without style options.1

\paper {
  fonts.roman = "Linux Libertine O"
  fonts.sans = "DejaVu Sans"
  fonts.typewriter = "DejaVu Sans Mono"
}

\relative c'{
  c1-\markup {
    roman,
    \sans sans,
    \typewriter typewriter. }
}

[image of music]

The same syntax can be used to change the music font; see Replacing the notation font.

See also

Notation Reference: Finding fonts, Font families, Single entry fonts, Selecting font and font size, Font markup, Replacing the notation font.


Footnotes

[1] This implies that, contrary to single fonts, a trailing comma is never necessary.


LilyPond — Notation Reference v2.25.4 (development-branch).