Re: "mtxrun --script fonts --reload" hangs when loading "LXGWNeoXiHei.ttf"

Max Chernoff via ntg-context <[email protected]>
Newsgroups gmane.comp.tex.context
Message-ID <[email protected]>
Hi Arthur,

On Wed, 2026-03-25 at 14:31 +0100, Arthur Rosendahl wrote:
> On Wed, Mar 25, 2026 at 01:50:53PM +0100, Hans Hagen via ntg-context wrote:
> > On 3/25/2026 1:17 PM, Max Chernoff wrote:
> > > Yes, but only with XeLaTeX:
> > >
> > >      https://github.com/myhsia/LXGW-CTAN/actions/runs/23419659711/job/68121899170
> >
> > kind of useless, no info, here i get with xetex
> >
> > [1
> > xdvipdfmx:fatal: Expecting zero
> >
> > No output PDF file written.
> >
> > Wondering: did someone actually look at the result file? Or is this all
> > automatic.
>
>   These are automated tests on GitHub Actions, so in all likelihood
> nobody checked the result since it passed.  Also, from a quick look it
> seems that XeTeX is run with the -no-pdf option:

Rather surprisingly, the version uploaded to the GitHub releases is
actually fine, but the version on CTAN is broken:

    $ wget -O ctan.ttf 'https://mirrors.ctan.org/fonts/lxgw-fonts/LXGWNeoXiHei.ttf'
    $ wget 'https://github.com/myhsia/LXGW-CTAN/releases/download/2026-03-23/lxgw-fonts.zip'
    $ unzip -p lxgw-fonts.zip lxgw-fonts/LXGWNeoXiHei.ttf > github.ttf
    $ wget -O upstream.ttf 'https://github.com/lxgw/LxgwNeoXiHei/releases/download/v1.242/LXGWNeoXiHei.ttf'

    $ sha256sum *.ttf
    5dfd5b8243c4104fa05edc9c82b680f823563aa6ab762c7adde66bd1b1ec6fc8  ctan.ttf
    0124410269436b64263573bab7fb97aeac3dad932079d9e8c42708c6a1330bf8  github.ttf
    0124410269436b64263573bab7fb97aeac3dad932079d9e8c42708c6a1330bf8  upstream.ttf

    $ du --bytes *.ttf
    7421501	ctan.ttf
    7437332	github.ttf
    7437332	upstream.ttf

    $ for x in *.ttf; do printf '%s\t%s\n' $x "$(strings $x | grep Version)"; done
    ctan.ttf	2Version 1.242;February 27, 2026LXGW Neo XiHei:Version 1.242
    github.ttf	2Version 1.242;February 27, 2026LXGW Neo XiHei:Version 1.242
    upstream.ttf	2Version 1.242;February 27, 2026LXGW Neo XiHei:Version 1.242

I suspect that the file got corrupted somehow during/after the upload,
in which case, no amount of testing could realistically prevent this.

Thanks,
-- Max
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.