lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting entire document fonts


From: tisimst
Subject: Re: Setting entire document fonts
Date: Fri, 24 Oct 2014 10:10:34 -0700 (PDT)

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] <[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:
8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
\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)
8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]