lilypond-user
[Top][All Lists]
Advanced

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

Re: PercentRepeatCounter font-encoding


From: Thomas Morley
Subject: Re: PercentRepeatCounter font-encoding
Date: Wed, 23 Apr 2014 11:51:44 +0200

2014-04-23 10:33 GMT+02:00 Pierre Perol-Schneider
<address@hidden>:
> Hi LilyPonders,
>
> I don't understand why the following code :
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%
> \version "2.16.2"
>
> \include "LilyJAZZ.ily"
>
>
> {
>
>    \jazzOn
>
>    \set countPercentRepeats = ##t
>
>    \override Staff.PercentRepeatCounter #'font-encoding = #'LilyJAZZText
>
>    \repeat percent 2 { c'1 c' }
>
> }
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>
> has no effect on the counter font.
>
> Anyone ?
>
>
> Cheers,
>
> Pierre


Hi Pierre,

two things:

a)
from the Internals Manual:

font-encoding (symbol)
The font encoding is the broadest category for selecting a font.
Currently, only lilypond’s system fonts (Emmentaler) are using this
property. Available values are fetaMusic (Emmentaler), fetaBraces,
fetaText (Emmentaler).

It's currently not possible to make LilyPond accept another font as
default. The LilyJazz (and Bravura) fonts are integrated via a sort of
workaround.
Meaning every single grob needs an override to use it (and not an
override for 'font-encoding)

b)
In this case the grob you want to override is
DoublePercentRepeatCounter not PercentRepeatCounter!


{
   \jazzOn
   \set countPercentRepeats = ##t
   \override DoublePercentRepeatCounter.font-name = "LilyJAZZText"
   \repeat percent 2 { c'1 c' }

}

Cheers,
  Harm



reply via email to

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