On Sat, 31 Dec 2022 at 16:33, Jean Abou Samra <[email protected]> wrote:
> Le 31/12/2022 à 14:56, Sven Axelsson a écrit :
> > Hi list,
> >
> > I have just updated my sheet music archive to LilyPond 2.24.0. It went
> > well, but I am seeing a strange font encoding problem.
> >
> > I have installed LilyPond on a Mac M1 running MacOS 13.1 with Homebrew
> > which builds from source using Guile 3.0.
> >
> > Running this code
> >
> > \version "2.24.0"
> >
> > \markup \line { N is wrong. }
> > \markup \line { \bold N is fine. }
> >
> > I get this result
> >
> > CleanShot 2022-12-31 at [email protected]
> > I'd appreciate it if someone could check if this happens with other
> > installs or if it is Homebrew specific. I have only seen it happen for
> > the letter N.
>
>
> Ugh.
>
> We recently saw a problem of this type, but I don't think it's the same,
> or at least not exactly the same, although it could be similar.
>
> Can you please compile this code ? It should prints lots of stuff to the
> log. Send that back.
>
> \version "2.24.0"
>
> #(define-markup-command (debug layout props arg) (markup?)
> (let ((stil (interpret-markup layout props arg)))
> (pretty-print (ly:stencil-expr stil)
> (current-error-port))
> (flush-all-ports)
> stil))
>
> \markup \debug \line { N is wrong. }
> \markup \debug \line { \bold N is fine. }
>
I get this output. The correct, bold one names a particular glyph and the
other does not. Don't know if that is important.
(combine-stencil
(utf-8-string
"LilyPond Serif 3.8662109375"
"N"
(translate-stencil
(0.0 . 0.0)
(glyph-string
#<Pango_font (#f . 1.0)>
"TimesNewRomanPSMT"
3.865234375
#f
((1.604735433070866
(-0.023640238988681103 . 1.4566921874999998)
0.0
0.0
"N"))
"/System/Library/Fonts/Supplemental/Times New Roman.ttf"
0
"N"
((1 . 1)))))
(translate-stencil
(2.204735433070866 . 0.0)
(utf-8-string
"LilyPond Serif 3.8662109375"
"is"
(translate-stencil
(0.0 . 0.0)
(glyph-string
#<Pango_font (#f . 1.0)>
"TimesNewRomanPSMT"
3.865234375
#f
((0.6145795275590551
(0.0 . 1.5275795613927166)
0.0
0.0
"i")
(0.8535826771653543
(-0.03007545214074803 . 1.0130292538139762)
0.0
0.0
"s"))
"/System/Library/Fonts/Supplemental/Times New Roman.ttf"
0
"is"
((1 . 1) (1 . 1))))))
(translate-stencil
(4.272897637795276 . 0.0)
(utf-8-string
"LilyPond Serif 3.8662109375"
"wrong."
(translate-stencil
(0.0 . 0.0)
(glyph-string
#<Pango_font (#f . 1.0)>
"TimesNewRomanPSMT"
3.865234375
#f
((1.604735433070866
(-0.03007545214074803 . 0.984020780019685)
0.0
0.0
"w")
(0.7170094488188976
(0.0 . 1.0130292538139762)
0.0
0.0
"r")
(1.0925858267716535
(-0.03007545214074803 . 1.0130292538139762)
0.0
0.0
"o")
(1.0925858267716535
(0.0 . 1.0130292538139762)
0.0
0.0
"n")
(1.0925858267716535
(-0.47480536417322833 . 1.0130292538139762)
0.0
0.0
"g")
(0.5462929133858268
(-0.03007545214074803 . 0.20839420829232283)
0.0
0.0
"period"))
"/System/Library/Fonts/Supplemental/Times New Roman.ttf"
0
"wrong."
((1 . 1) (1 . 1) (1 . 1) (1 . 1) (1 . 1) (1 . 1)))))))
(combine-stencil
(utf-8-string
"LilyPond Serif Bold 3.8662109375"
"N"
(translate-stencil
(0.0 . 0.0)
(glyph-string
#<Pango_font (#f . 1.0)>
"TimesNewRomanPS-BoldMT"
3.865234375
#f
((1.604735433070866
(-0.03330973025344488 . 1.4566921874999998)
0.0
0.0
"glyph1197"))
"/System/Library/Fonts/Supplemental/Times New Roman Bold.ttf"
0
"N"
((1 . 1)))))
(translate-stencil
(2.204735433070866 . 0.0)
(utf-8-string
"LilyPond Serif 3.8662109375"
"is"
(translate-stencil
(0.0 . 0.0)
(glyph-string
#<Pango_font (#f . 1.0)>
"TimesNewRomanPSMT"
3.865234375
#f
((0.6145795275590551
(0.0 . 1.5275795613927166)
0.0
0.0
"i")
(0.8535826771653543
(-0.03007545214074803 . 1.0130292538139762)
0.0
0.0
"s"))
"/System/Library/Fonts/Supplemental/Times New Roman.ttf"
0
"is"
((1 . 1) (1 . 1))))))
(translate-stencil
(4.272897637795276 . 0.0)
(utf-8-string
"LilyPond Serif 3.8662109375"
"fine."
(translate-stencil
(0.0 . 0.0)
(glyph-string
#<Pango_font (#f . 1.0)>
"TimesNewRomanPSMT"
3.865234375
#f
((0.7170094488188976
(0.0 . 1.525445604699803)
0.0
0.0
"f")
(0.6145795275590551
(0.0 . 1.5275795613927166)
0.0
0.0
"i")
(1.0925858267716535
(0.0 . 1.0130292538139762)
0.0
0.0
"n")
(0.990155905511811
(-0.03007545214074803 . 1.014096232160433)
0.0
0.0
"e")
(0.5462929133858268
(-0.03007545214074803 . 0.20839420829232283)
0.0
0.0
"period"))
"/System/Library/Fonts/Supplemental/Times New Roman.ttf"
0
"fine."
((1 . 1) (1 . 1) (1 . 1) (1 . 1) (1 . 1)))))))
--
*Sven Axelsson*
++++++++++[>++++++++++>+++++++++++>++++++++++>++++++
>++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<.
+++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----.