lilypond-devel
[Top][All Lists]
Advanced

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

Re: See the new music fonts in action


From: David Kastrup
Subject: Re: See the new music fonts in action
Date: Sat, 02 Aug 2014 09:00:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Abraham Lee <address@hidden> writes:

> On Fri, Aug 1, 2014 at 3:51 PM, Alexander Kobel <address@hidden> wrote:
>>
>> factor is relevant if you set the global staff size to something
>> different than 20, the default.  The usual rule-of-tree used to be
>> something like
>>   myStaffSize = #17.82
>>   #(set-global-staff-size myStaffSize)
>>   #(define fonts (make-pango-font-tree ... (/ myStaffSize 20)))
>>
>> BTW, I never really understood whether it is technically possible to
>> automatically figure out "factor" at the point where
>> make-pango-font-tree is called?  If not, why?  And if yes, is there
>> any reason why it is not done?
>>
>>
>> Best,
>> Alexander
>>
> Ah, yes. I knew there was a reason for the syntax "(/ staff-height pt
> 20)" or its equivalent. I just tried to play around with
> make-pango-font-tree and I couldn't seem to figure out how to
> reference the "staff-height" variable within this function. 
>
> David Kastrup? Anyone? Any ideas?

Well, looking at the definition of set-global-staff-size would seem to
indicate how the size is being set.  I suspect that calculating the
"relevant module" in that manner and then looking up output-scale in it
might do the trick.  But I haven't really understood the output scale
business anyway.  It's not clear to me how it works in every
circumstance.

-- 
David Kastrup



reply via email to

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