lilypond-user
[Top][All Lists]
Advanced

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

Re: Maintaining font-size regardless of staff-size


From: David Kastrup
Subject: Re: Maintaining font-size regardless of staff-size
Date: Fri, 18 May 2018 13:37:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

David Sumbler <address@hidden> writes:

> %%%%%%%%%%%%%%%%%%
> \version "2.19.81"
>
> #(set-global-staff-size 20)
> \book {
>   \bookOutputName "test1"
>   \header { title = \markup \fontsize #10 "fontsize 10" }
>   { c''1 }
> }
>
> #(set-global-staff-size 10)
> \book {
>   \bookOutputName "test2"
>   \header { title = \markup \fontsize #16 "fontsize 16" }
>   { c''1 }
> }
> %%%%%%%%%%%%%%%%%%
>
> Here the text in the second output file is correctly sized, but with
> the horizontal spacing only half what it should be.  It is similar to
> the problem found with \abs-fontsize.
>
> However, in this case the problem is unlikely to be an issue in
> practice, because the only circumstances I have found in which it
> occurs are when (a) the second staff size is exactly half (or double)
> the first staff size, AND (b) the second fontsize is smaller (or
> greater) than the first by exactly 6.
>
> Weird, eh?

No.  Fontsize is defined in terms of 6th roots of 2.  So basically you
are producing a font with quite exactly the same size.  LilyPond is
likely reusing some aspect of it but then botches the spacing.

-- 
David Kastrup



reply via email to

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