Next: , Up: Fonts


1.8.3.1 Entire document fonts

It is also possible to change the default font family for the entire document. This is done by calling the make-pango-font-tree from within the \paper block. The function takes names for the font families to use for roman, sans serif and monospaced text. For example,

\paper  {
  myStaffSize = #20

  #(define fonts
    (make-pango-font-tree "Times New Roman"
                          "Nimbus Sans"
                          "Luxi Mono"
                           (/ myStaffSize 20)))
}

{
  c'^\markup { roman: foo \sans bla \typewriter bar }
}

[image of music]

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

Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.

Your suggestions for the documentation are welcome.

Other languages: espaƱol.