lilypond-user
[Top][All Lists]
Advanced

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

Re: Custom fonts


From: Erik Ronström
Subject: Re: Custom fonts
Date: Thu, 11 Aug 2016 13:11:05 +0200

> 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:

Thanks, that would be the best solution!

However, for some reason it doesn’t work: #(define fonts …) seems to have no 
effect at all in my document. Any tips for why?

Erik



> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%% 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]