lilypond-user
[Top][All Lists]
Advanced

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

Re: inter-letter spacing?


From: David Kastrup
Subject: Re: inter-letter spacing?
Date: Mon, 15 Jul 2019 21:37:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Werner LEMBERG <address@hidden> writes:

>> any idea how to realize inter-letter spacing?  Has someone already
>> written a macro like
>> 
>>   \markup { \letter-spacing #0.1 "foobar" }
>> 
>> which should be equivalent to
>> 
>>   \markup { \concat { "f" \hspace #0.1
>>                       "o" \hspace #0.1
>>                       ...
>>                       "a" \hspace #0.1
>>                       "r" } }
>> 
>> ?  A google search didn't come up with a solution...
>
> Actually, I wonder whether this is possible at all currently.  The
> above is a very simplistic solution, completely ignoring kerning,
> which should be retained.
>
> It seems that we would need a Scheme interface to the
> `pango_attr_letter_spacing_new' function, which isn't used yet within
> LilyPond...
>
> PS: Right now, I would be thankful for a pointer to this simplistic
>     solution :-)

\markup \override #'(word-space . 0.4)
        \line { #(map! string (string->list "foobar")) }

-- 
David Kastrup



reply via email to

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