ly:stencil-fonts always returns '()
Originally reported by: thomas-morley
At least since 2.12.3 ly:stencil-fonts always returns '()
\version "2.12.3"
%% old syntax and includes module to make it work
%% with old ly-versions
#(use-modules (ice-9 pretty-print))
{
\override TextScript #'after-line-breaking =
#(lambda (grob)
;(pretty-print (ly:stencil-expr (ly:grob-property grob 'stencil)))
(format #t "\nResult of ly:stencil-fonts: ~y"
(ly:stencil-fonts (ly:grob-property grob 'stencil))))
s-"g"
}
Returns in terminal:
Result of ly:stencil-fonts: ()
Uncommenting the line (pretty-print ...) will print:
(translate-stencil
(0.0 . 0.0)
(glyph-string
#<Font_metric (#f . 1.0)>
"TeXGyreSchola-Regular"
3.865234375
#f
'((1.1950157480315
(-0.443862992125984 . 1.09258582677165)
0.0
0.0
"g"))))
So fonts are visible in the stencil-expression
Original URL: https://sourceforge.net/p/testlilyissues/issues/5430