bug-lilypond
[Top][All Lists]
Advanced

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

Re: Setting font families for entire document in LilyPond version 2.18.2


From: Alexander Kobel
Subject: Re: Setting font families for entire document in LilyPond version 2.18.2.
Date: Tue, 20 Dec 2016 20:37:20 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Hi Miroslaw,

not sure if I understand correctly what you mean.
It is perfectly possible to write a file CustomTemplate.ly with a content like that:

\paper  {
  #(define fonts
    (make-pango-font-tree "Times New Roman"
                          "Nimbus Sans,Nimbus Sans L"
                          "Luxi Mono"
                          (/ staff-height pt 20)))
}

and include it with the command you mentioned. For reference on the command used herein, see

http://lilypond.org/doc/v2.18/Documentation/notation/fonts#entire-document-fonts

If you need further adjustments, e.g. for the font size of the lyrics, you can also have global layout blocks in that file:

\layout {
  \context {
    \Lyrics
    \override LyricText.font-size = #0
  }
}

or similar overrides.


HTH,
Alexander


On 2016-12-20 20:25, Mirosław Doroszewski wrote:
Setting font families for entire document in LilyPond version 2.18.2.

Setting font families for entire document is not possible in template
added to document with \include. If is many documents in a book, there
is necessary to set font families in each document separately. But
this solution not always working. And if there is 500 documents in a
song book?
So, please, make solution: setting font families be possible by adding
single template with \include to document.
For instance:

\version "2.18.2"
\include "CustomTemplate.ly"
{...}

_______________________________________________
bug-lilypond mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-lilypond




reply via email to

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