Setting entire document fonts
Following the example for setting the entire document fonts at http://www.lilypond.org/doc/v2.18/Documentation/notation/fonts#entire-document-fonts I constructed this code: \version 2.18.0 \paper { #(define fonts (make-pango-font-tree Nimbus Sans Luxi Mono Times New Roman (/ staff-height pt 20))) } { c' ^\markup {roman, \sans sans, \typewriter typewriter.} g' } %#(set-global-staff-size 20) where I have switched round the order of the fonts so that the typewriter should show in Roman and the Roman as sans etc. This works, but if I uncomment the set-global-staff-size line it reverts to the default. What is going on here? How do I set the fonts and the overall staff size? Richard ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Setting entire document fonts
Richard, Internally, when you call set-global-staff-size, it resets the text fonts. Thus, if you want to use a different staff size, that must go PRIOR to where you define the fonts. Kinda weird, I know, but that's how it works. HTH, Abraham Sent from my iPhone On Oct 24, 2014, at 10:29 AM, Richard Shann-2 [via Lilypond] ml-node+s1069038n167869...@n5.nabble.com wrote: Following the example for setting the entire document fonts at http://www.lilypond.org/doc/v2.18/Documentation/notation/fonts#entire-document-fonts I constructed this code: \version 2.18.0 \paper { #(define fonts (make-pango-font-tree Nimbus Sans Luxi Mono Times New Roman (/ staff-height pt 20))) } { c' ^\markup {roman, \sans sans, \typewriter typewriter.} g' } %#(set-global-staff-size 20) where I have switched round the order of the fonts so that the typewriter should show in Roman and the Roman as sans etc. This works, but if I uncomment the set-global-staff-size line it reverts to the default. What is going on here? How do I set the fonts and the overall staff size? Richard ___ lilypond-user mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/lilypond-user If you reply to this email, your message will be added to the discussion below: http://lilypond.1069038.n5.nabble.com/Setting-entire-document-fonts-tp167869.html To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com To unsubscribe from Lilypond, click here. NAML -- View this message in context: http://lilypond.1069038.n5.nabble.com/Setting-entire-document-fonts-tp167869p167870.html Sent from the User mailing list archive at Nabble.com.___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Setting entire document fonts
On Fri, 2014-10-24 at 10:10 -0700, tisimst wrote: Richard, Internally, when you call set-global-staff-size, it resets the text fonts. Thus, if you want to use a different staff size, that must go PRIOR to where you define the fonts. Thank you! that works fine. Richard Kinda weird, I know, but that's how it works. HTH, Abraham Sent from my iPhone On Oct 24, 2014, at 10:29 AM, Richard Shann-2 [via Lilypond] [hidden email] wrote: Following the example for setting the entire document fonts at http://www.lilypond.org/doc/v2.18/Documentation/notation/fonts#entire-document-fonts I constructed this code: \version 2.18.0 \paper { #(define fonts (make-pango-font-tree Nimbus Sans Luxi Mono Times New Roman (/ staff-height pt 20))) } { c' ^\markup {roman, \sans sans, \typewriter typewriter.} g' } %#(set-global-staff-size 20) where I have switched round the order of the fonts so that the typewriter should show in Roman and the Roman as sans etc. This works, but if I uncomment the set-global-staff-size line it reverts to the default. What is going on here? How do I set the fonts and the overall staff size? Richard ___ lilypond-user mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/lilypond-user If you reply to this email, your message will be added to the discussion below: http://lilypond.1069038.n5.nabble.com/Setting-entire-document-fonts-tp167869.html To start a new topic under User, email [hidden email] To unsubscribe from Lilypond, click here. NAML __ View this message in context: Re: Setting entire document fonts Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Setting entire document fonts
On Fri, 24 Oct 2014 10:10:34 -0700 (PDT) tisimst tisimst.lilyp...@gmail.com wrote: Internally, when you call set-global-staff-size, it resets the text fonts. Thus, if you want to use a different staff size, that must go PRIOR to where you define the fonts. Kinda weird, I know, but that's how it works. ... and one of those little points where lilypond devs should really massage their neighbourhood-user-friendliness muscle a little... Sorry - I don't mean to troll or flame, but this conversation just brought back memories of hours spent in search of the causes of silly errors such as this. Argh. eyolf -- Finality is death. Perfection is finality. Nothing is perfect. There are lumps in it. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user