Torsten Anders wrote:
Now, there is only a minor flaw now: the distance between a note
and the related accidentals is rather big. In fact, accidentals
are more close to the preceding note than the note they belong to.
I'm way out of my depth here, but it looks like markup is appending
space to the glyphs of this font.
To see how far the markup actually extends, try doing
\override Accidental #'stencil = #(lambda (grob) (box-stencil
(ly:text-interface::print grob) 0 0))
And to see the effect more clearly, compare these two concats:
\markupHE \markup \concat { \sans n \sans n } % HE font
\markupHE \markup \concat { \natural \natural } % feta font
I can't help you with this font problem, but cheating on the X-
extent improves things a bit:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#(define (markup-X-extent markup) (lambda (grob)
(interval-translate (ly:stencil-extent (grob-interpret-markup
grob markup) X) -0.5)))
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Cheers,
Robin<concat.png>