lilypond-user
[Top][All Lists]
Advanced

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

Re: lyrics font size


From: Mats Bengtsson
Subject: Re: lyrics font size
Date: Tue, 19 Jun 2007 20:22:28 +0200
User-agent: Internet Messaging Program (IMP) H3 (4.0.5)

Quoting vwf <address@hidden>:

On Tue, Jun 19, 2007 at 11:32:07AM -0400, Kieren MacMillan wrote:
Hello!

>How can I set the size of the staves and the lyrics independently?

Use

    \override Score.LyricText #'font-size = #0.8

and set the last number as you need (default is 1).

Unfortunately, this does not work with the pango-fonts, only with
the default CM fonts.

No! The default fonts are not CM but Century Schoolbook and it certainly should work with any pango-fonts. Try for example:

\paper  {
 myStaffSize = #20

 #(define fonts
   (make-pango-font-tree "Freestyle script"
                         "Freestyle script"
                         "Freestyle script"
                          (/ myStaffSize 20)))
}

\relative c' {c d }
\addlyrics { ABCDE \override LyricText #'font-size = #+5 ABCDE }

I also noted that you had played around with several numbers. The idea
is that the value of myStaffSize should correspond to the staff size
used for the music, for example
#(set-global-staff-size 15)
\paper{
 myStaffSize = #15
 ...
}
and you shouldn't touch the last argument of make-pango-font-tree, where (/ myStaffSize 20) simply is Scheme syntax to calculate
the value of myStaffSize divided by 20, which normally will lead
to a good match between the music and the text fonts. Of course, if you find that the result is consistently too small or large for
a particular font, then you can change one of these values, but it
doesn't make sense to change both (I would change myStaffSize and
keep the division by 20).

  /Mats





reply via email to

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