Le 17/10/2022 à 22:13, Federico Bruni a écrit :
Sorry, I should have not put that link, as it only works in 2.22 and no longer in 2.23.
Here's a minimal example:

\version "2.23.14"

tuningOpenD = \markup {
 \fontsize #-4
 \override #'(baseline-skip . 1.5)
 \column \override #'(font-name . "Arial Bold") {
   D A F♯ D A D
 }
}

\new TabStaff {
 \set TabStaff.stringTunings = #guitar-open-d-tuning
 \set TabStaff.instrumentName = \markup { " " \tuningOpenD }
 \set TabStaff.shortInstrumentName = \markup \tuningOpenD
 d,8 a, d fis a d'
}



Well, the ♯ is inside \override #'(font-name . "Arial Bold"), which
is basically a sledgehammer to override all font selection logic.

Try

\version "2.23.14"

tuningOpenD = \markup {
 \fontsize #-4
 \override #'(baseline-skip . 1.5)
 \column \override #'(font-name . "Arial Bold") {
   D A \concat { F \override #'(font-name . #f) \fontsize #-3 \number ♯ } D A D
 }
}

\new TabStaff {
 \set TabStaff.stringTunings = #guitar-open-d-tuning
 \set TabStaff.instrumentName = \markup { " " \tuningOpenD }
 \set TabStaff.shortInstrumentName = \markup \tuningOpenD
 d,8 a, d fis a d'
}




Reply via email to