lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange font problem in 2.24.0


From: Jean Abou Samra
Subject: Re: Strange font problem in 2.24.0
Date: Sat, 31 Dec 2022 17:39:52 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0



Le 31/12/2022 à 17:11, Sven Axelsson a écrit :
On Sat, 31 Dec 2022 at 16:33, Jean Abou Samra <jean@abou-samra.fr> 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 14.37.39@2x.png
    > 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)))))



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-1368249969

Try using the official binaries while they fix this.

Best,
Jean


Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]