[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Strange font problem in 2.24.0
From:       Sven Axelsson <sven.axelsson () gmail ! com>
Date:       2022-12-31 17:23:28
Message-ID: CAP1yDHbq-sLqge+1A8vDWVv+CffQv--H7CtRMz3wq+L5KsYdGQ () mail ! gmail ! com
[Download RAW message or body]

On Sat, 31 Dec 2022 at 17:39, Jean Abou Samra <jean@abou-samra.fr> wrote:

>
>
> Le 31/12/2022 =C3=A0 17:11, Sven Axelsson a =C3=A9crit :
> > On Sat, 31 Dec 2022 at 16:33, Jean Abou Samra <jean@abou-samra.fr>
> wrote:
> >
> >     Le 31/12/2022 =C3=A0 14:56, Sven Axelsson a =C3=A9crit :
> >     > 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 14.37.39@2x.png
> >     > I'd appreciate it if someone could check if this happens with oth=
er
> >     > 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)))))
>
>
>
> OK, at least two things are going wrong here.
>
> First, could you please send me the file that you have under
> "/System/Library/Fonts/Supplemental/Times New Roman.ttf"? I would like
> to understand what is going wrong with the N letter in this font. Better
> send it to me privately, as I suspect the list won't let it pass due to
> file size restrictions (or use a sharing service).
>
> Second, Homebrew's way of packaging LilyPond seems to have missed a
> build change in 2.24, because LilyPond should not be using Times New
> Roman here in the first place, but its normal default text font C059. I
> have reported this at
>
>
> https://github.com/Homebrew/homebrew-core/pull/118260#issuecomment-136824=
9969
>
> Try using the official binaries while they fix this.


OK, tried the official x86 binary. That does work correctly. I can use it
until there either is an official ARM build or the Homebrew build has been
fixed.
I sent the font file to you privately.

Thanks,

*Sven Axelsson*
++++++++++[>++++++++++>+++++++++++>++++++++++>++++++
>++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<.
+++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----.

[Attachment #3 (text/html)]

<div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">On Sat, 31 Dec 2022 at 17:39, Jean Abou Samra &lt;<a \
href="mailto:jean@abou-samra.fr">jean@abou-samra.fr</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br> <br>
Le 31/12/2022 à 17:11, Sven Axelsson a écrit  :<br>
&gt; On Sat, 31 Dec 2022 at 16:33, Jean Abou Samra &lt;<a \
href="mailto:jean@abou-samra.fr" target="_blank">jean@abou-samra.fr</a>&gt; \
wrote:<br> &gt;<br>
&gt;        Le 31/12/2022 à 14:56, Sven Axelsson a écrit  :<br>
&gt;        &gt; Hi list,<br>
&gt;        &gt;<br>
&gt;        &gt; I have just updated my sheet music archive to LilyPond 2.24.0.<br>
&gt;        It went<br>
&gt;        &gt; well, but I am seeing a strange font encoding problem.<br>
&gt;        &gt;<br>
&gt;        &gt; I have installed LilyPond on a Mac M1 running MacOS 13.1 with<br>
&gt;        Homebrew<br>
&gt;        &gt; which builds from source using Guile 3.0.<br>
&gt;        &gt;<br>
&gt;        &gt; Running this code<br>
&gt;        &gt;<br>
&gt;        &gt; \version &quot;2.24.0&quot;<br>
&gt;        &gt;<br>
&gt;        &gt; \markup \line { N is wrong. }<br>
&gt;        &gt; \markup \line { \bold N is fine. }<br>
&gt;        &gt;<br>
&gt;        &gt; I get this result<br>
&gt;        &gt;<br>
&gt;        &gt; CleanShot 2022-12-31 at 14.37.39@2x.png<br>
&gt;        &gt; I&#39;d appreciate it if someone could check if this happens with \
other<br> &gt;        &gt; installs or if it is Homebrew specific. I have only seen \
it<br> &gt;        happen for<br>
&gt;        &gt; the letter N.<br>
&gt;<br>
&gt;<br>
&gt;        Ugh.<br>
&gt;<br>
&gt;        We recently saw a problem of this type, but I don&#39;t think it&#39;s \
the<br> &gt;        same,<br>
&gt;        or at least not exactly the same, although it could be similar.<br>
&gt;<br>
&gt;        Can you please compile this code ? It should prints lots of stuff<br>
&gt;        to the<br>
&gt;        log. Send that back.<br>
&gt;<br>
&gt;        \version &quot;2.24.0&quot;<br>
&gt;<br>
&gt;        #(define-markup-command (debug layout props arg) (markup?)<br>
&gt;               (let ((stil (interpret-markup layout props arg)))<br>
&gt;                   (pretty-print (ly:stencil-expr stil)<br>
&gt;                                               (current-error-port))<br>
&gt;                   (flush-all-ports)<br>
&gt;                   stil))<br>
&gt;<br>
&gt;        \markup \debug \line { N is wrong. }<br>
&gt;        \markup \debug \line { \bold N is fine. }<br>
&gt;<br>
&gt;<br>
&gt; I get this output. The correct, bold one names a particular glyph and <br>
&gt; the other does not. Don&#39;t know if that is important.<br>
&gt;<br>
&gt; (combine-stencil<br>
&gt;    (utf-8-string<br>
&gt;       &quot;LilyPond Serif 3.8662109375&quot;<br>
&gt;       &quot;N&quot;<br>
&gt;       (translate-stencil<br>
&gt;          (0.0 . 0.0)<br>
&gt;          (glyph-string<br>
&gt;             #&lt;Pango_font (#f . 1.0)&gt;<br>
&gt;             &quot;TimesNewRomanPSMT&quot;<br>
&gt;             3.865234375<br>
&gt;             #f<br>
&gt;             ((1.604735433070866<br>
&gt;                (-0.023640238988681103 . 1.4566921874999998)<br>
&gt;                0.0<br>
&gt;                0.0<br>
&gt;                &quot;N&quot;))<br>
&gt;             &quot;/System/Library/Fonts/Supplemental/Times New \
Roman.ttf&quot;<br> &gt;             0<br>
&gt;             &quot;N&quot;<br>
&gt;             ((1 . 1)))))<br>
<br>
<br>
<br>
OK, at least two things are going wrong here.<br>
<br>
First, could you please send me the file that you have under <br>
&quot;/System/Library/Fonts/Supplemental/Times New Roman.ttf&quot;? I would like <br>
to understand what is going wrong with the N letter in this font. Better <br>
send it to me privately, as I suspect the list won&#39;t let it pass due to <br>
file size restrictions (or use a sharing service).<br>
<br>
Second, Homebrew&#39;s way of packaging LilyPond seems to have missed a <br>
build change in 2.24, because LilyPond should not be using Times New <br>
Roman here in the first place, but its normal default text font C059. I <br>
have reported this at<br>
<br>
<a href="https://github.com/Homebrew/homebrew-core/pull/118260#issuecomment-1368249969" \
rel="noreferrer" target="_blank">https://github.com/Homebrew/homebrew-core/pull/118260#issuecomment-1368249969</a><br>
 <br>
Try using the official binaries while they fix \
this.</blockquote><div><br></div><div>OK, tried the official x86 binary. That does \
work correctly. I can use it until there either is an official ARM build or the \
Homebrew build has been fixed.</div><div>I sent the font file to you \
privately.</div><div><br></div><div>Thanks,</div><div>  <br></div></div><div \
dir="ltr" class="gmail_signature"><div dir="ltr"><b>Sven Axelsson</b><br><span \
style="font-family:monospace">++++++++++[&gt;++++++++++&gt;+++++++++++&gt;++++++++++&g \
t;++++++<br>&gt;++++&lt;&lt;&lt;&lt;&lt;-]&gt;++++.+.++++.&gt;+++++.&gt;+.&lt;&lt;-.&g \
t;&gt;+.&gt;++++.&lt;&lt;.<br>+++.&gt;-.&lt;&lt;++.&gt;&gt;----.&lt;++.&gt;&gt;&gt;++++++.&lt;&lt;&lt;&lt;.&gt;&gt;++++.&lt;----.</span></div></div></div>




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic