lilypond-user
[Top][All Lists]
Advanced

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

Re: Custom fonts


From: Malte Meyn
Subject: Re: Custom fonts
Date: Thu, 11 Aug 2016 12:08:36 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0



Am 11.08.2016 um 11:04 schrieb Erik Ronström:
Of course, I can define my own macro, but isn’t there a built-in mechanism to 
resolve different fonts of the same typeface/font family?

Do you really want to change only the Lyrics font? Or is it ok to change the fonts in the whole document? Here is how to do that in LilyPond version 2.19 and 2.18:

%%%%%%%%%%%%%%%%%%%%%%%%%%% begin LilyPond code

%{
\version "2.19.46"

\paper {
  #(define fonts
    (set-global-fonts
    #:roman "LMRoman10"
    #:sans "LMSans10"
    #:typewriter "LMMono10"
    #:factor (/ staff-height pt 20)
  ))
}
%}

%%{
\version "2.18.2"

\paper {
  #(define fonts
     (make-pango-font-tree
      "LMRoman10"
      "LMSans10"
      "LMMono10"
      (/ staff-height pt 20)))
}
%}


\relative {
  c' d e f g2 g
}

\addlyrics {
\markup \typewriter Al -- le mei -- ne \markup \italic Ent -- \markup \bold chen
}

%%%%%%%%%%%%%%%%%%%%%%%%%%% end LilyPond code



reply via email to

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