Am 12.12.22 um 01:36 schrieb Jean Abou Samra:
Le 12/12/2022 à 01:20, Jean Abou Samra a écrit :
Werner will know about this better than me, but I am still curious. What does this give you?

\version "2.23.82"

#(ly:message "~s" (ly:font-config-get-font-file "emmentaler-20"))
\markup "♯"


Sorry, \markup "♯" should've been

\markup \override #'(font-encoding . fetaText) "♯"

For me,

\version "2.23.82"

\markup
$(markup-lambda (layout props x) (markup?)
   (let ((stil (interpret-markup layout props x)))
     (pretty-print (ly:stencil-expr stil) (current-error-port))
     stil))
\override #'(font-encoding . fetaText) "♯"

creates a nice sharp glyph; the stencil expression is:

(utf-8-string
  "emmentaler-20 7.029296875"
  "♯"
  (translate-stencil
    (0.0 . 0.0)
    (glyph-string
      #<Pango_font (#f . 1.0)>
      "Emmentaler-20"
      7.029296875
      #f
      ((1.0925858267716535
        (-0.25200694820374014 . 2.2520245155634844)
        0.0
        0.0
        "accidentals.sharp.figbass"))
"/home/lukas/lilypond-versions/2.23.82/share/lilypond/2.23.82/fonts/otf/emmentaler-20.otf"
      0
      "♯"
      ((3 . 1)))))

Lukas


Reply via email to