Hello

I would not have mentioned this, except that I saw others making the same mistake I made, and (like me) wondering what went wrong.

In the Notation manual for version 2.24, section 1.8.3 "Fonts", in the last-but-one subsection "Entire document fonts", there is this:

________

LilyPond provides an alternative, more flexible interface to set global font families. It allows you to change only specific font family names, leaving others set to default values. The following example has the same effect as the above make-pango-font-tree example; the syntax for font family names is identical. If you do not change the staff size from the default of 20pt, the line containing the #:factor keyword is unnecessary.

\paper {
 #(define fonts
   (set-global-fonts
    #:roman "Linux Libertine O"
    #:sans "Nimbus Sans, Nimbus Sans L"
    #:typewriter "DejaVu Sans Mono"
    ; unnecessary if the staff size is default
    #:factor (/ staff-height pt 20)
   ))
}
________



It took me a LONG time to realize that I should be keeping the number 20 as literally 20, rather than somehow adjusting it according to my chosen font size. I now see exactly why it is the way it is (and how silly my misunderstanding was), but it would have saved me some confusion if the doc said something like this:



________

LilyPond provides an alternative, more flexible interface to set global font families. It allows you to change only specific font family names, leaving others set to default values. The following example has the same effect as the above make-pango-font-tree example; the syntax for font family names is identical. If you do not change the staff size from the default of 20pt, the line containing the #:factor keyword is unnecessary. (The number 20 in that line is not meant to be changed; it is only there to restate Lilypond’s default staff size. Using set-global-staff-size -- before the \paper block, not after -- is enough.)
________


--
Thanks
David Rogers

Reply via email to