Previous: Single entry fonts, Up: Fonts


Entire document fonts

It is possible to change the fonts to be used as the default fonts in the roman, sans and typewriter font families by specifying them, in that order, as shown in the example below. For an explanation of fonts, see Fonts explained.

     
     \paper  {
       myStaffSize = #20
       #(define fonts
         (make-pango-font-tree "Times New Roman"
                               "Nimbus Sans"
                               "Luxi Mono"
                                (/ myStaffSize 20)))
     }
     
     \relative c'{
       c1-\markup {
         roman,
         \sans sans,
         \typewriter typewriter. }
     }

[image of music]

See also

Notation Reference: Fonts explained, Single entry fonts, Selecting font and font size, Font.

Other languages: espaƱol, deutsch.