lilypond-user
[Top][All Lists]
Advanced

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

Re: Choosing glyph variants


From: Simon Albrecht
Subject: Re: Choosing glyph variants
Date: Thu, 1 Sep 2016 18:41:30 +0200

On 29.08.2016 23:26, Erik Ronström wrote:
I found another workaround: even though the glyph variants share the same 
codepoint in the font, the alternative glyphs are actually defined in the 
unicode ”Private Use Area”, so they also have codepoints of their own. So I 
just replaced all » characters in the lilypond source with the unicode 
character #xF101. The drawback is that this codepoint is specific to the font, 
so when editing the source files, these characters is not displayed 
”correctly”. And if I would like to change lyrics font for the score, the 
quotes won’t show up.

As far as I know, there’s no way of accessing such glyph variants (or OpenType features) in LilyPond (we have a tracker issue for the OpenType part, IIRC). But if it’s about easier maintenance or nicer code, you might do something like this:

%%%%%%%%%%
\version "2.19.47"
computer-modern = ##f
flqq = #(if computer-modern #{ \markup { \char #"#xF101" } #} "»")
\markup \flqq
%%%%%%%%%%

HTH, Simon



reply via email to

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