[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Volta font
From:       Aaron Hill <lilypond () hillvisions ! com>
Date:       2019-06-20 16:48:33
Message-ID: bba16a22f0b66b3c50062842fb371721 () hillvisions ! com
[Download RAW message or body]

On 2019-06-20 9:29 am, Thomas Morley wrote:
> Am Do., 20. Juni 2019 um 18:21 Uhr schrieb Leah Velleman
> <leah.velleman@gmail.com>:
>> 
>> Is it possible to change the font used for volta numbers?
>> 
>> In the list archives I've seen options for customizing the volta text, 
>> some of which could be used with \text or \markup to change the font 
>> in addition. But I don't want to have to manually specify text and 
>> markup commands every time I have a repeat. I want  \alternative 
>> blocks to generate volta numbers automatically, as they do by default. 
>> I just want to specify once and for all what font all of those 
>> autogenerated numbers should appear in -- the same way I can, for 
>> instance, issue a single command to set a font for all lyrics. Is this 
>> possible?
>> 
>> Thanks,
>> Leah
> 
> {
> \override Score.VoltaBracket.font-name = "Purisa"
> \repeat volta 3 { R1 }
> \alternative {
>   R
>   R
>   R
>   }
> }
> 
> HTH,
>   Harm

Note that if you want to set font-family rather than font-name, you will 
need to change font-encoding:

%%%%
\version "2.19.82"

{
   \override Score.VoltaBracket.font-encoding = #'latin1
   \override Score.VoltaBracket.font-family = #'sans
   \repeat volta 3 { b'1 }
   \alternative { { b'1 } { b'1 } }
}
%%%%


-- Aaron Hill

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic