[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Weird parentheses
From: |
Thomas Morley |
Subject: |
Re: Weird parentheses |
Date: |
Mon, 24 Sep 2018 23:12:04 +0200 |
2018-09-24 9:04 GMT+02:00 Noeck <address@hidden>:
> Dear David,
>
> I might be wrong, but I think it is some font problem.
Most likely, I'd say.
Could you try:
\version "2.19.81"
#(define ((time-parenthesized-time up down upp1 downp1 upp2 downp2) grob)
(grob-interpret-markup grob
(markup
#:override '(baseline-skip . 0)
#:override '(font-name . #f)
#:override '(font-encoding . fetaText)
#:number
(#:line (
(#:center-column (up down))
#:vcenter "("
(#:center-column (upp1 downp1))
#:lower 0.5 "+"
(#:center-column (upp2 downp2))
#:vcenter ")" )))))
\new Staff {
\override Staff.TimeSignature #'after-line-breaking =
#(lambda (grob)
(newline)
(pretty-print
(ly:stencil-expr
(ly:grob-property grob 'stencil))))
\override Staff.TimeSignature #'stencil =
#(time-parenthesized-time "21" "8" "12" "8" "9" "8")
R1
}
The added code in `time-parenthesized-time` should make the markup
discard any font-name-setting you may have done before and forces it
to use 'fetaText.
The additional 'after-line-breaking-override displays the
stencil-expression in terminal.
It's a long list.
Of interest is for example the last section. Because font-name is #f
and font-encoding is 'fetaText a fall-back-font should be used, iiuc.
In my case it's "DejaVuSans":
[...]
(translate-stencil
(12.4918393700787 . 0.0)
(translate-stencil
(0.0 . -1.28037401574803)
(translate-stencil
(0.0 . 0.0)
(glyph-string
#<Font_metric (#f . 1.0)>
"DejaVuSans" <------------------------------
7.029296875
#f
'((1.57059212598425
(-0.512149606299213 . 3.07289763779528)
0.0
0.0
"parenright")))))))
What's displayed for you?
Cheers,
Harm