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

Hans Hagen via ntg-context <[email protected]>
Newsgroups gmane.comp.tex.context
Message-ID <[email protected]>
On 3/25/2026 1:17 PM, Max Chernoff wrote:
> Hi Hans,
> 
> On Wed, 2026-03-25 at 10:18 +0100, Hans Hagen via ntg-context wrote:
>> On 3/25/2026 5:40 AM, Max Chernoff via ntg-context wrote:
>>
>>   >      otf reader      | bad 'vmtx' table in file 'LXGWNeoXiHei.ttf'
>>>
>>> Even if it's the font itself that's buggy/broken, I'd argue that ConTeXt
>>> shouldn't enter an infinite loop when trying to load it.
>>
>> It took me a while to see that you actually don't use the tex live font
>> but a broken one from ctan
> 
> It is in TL, but it was updated only a few hours ago, so unless you've
> updated very recently and your local mirror is up-to-date, you might not
> have the broken version yet.

well, i installed tl 2026 yesterday afternoon (took quite a while so i 
didn't check all the messages flying by)

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

> On Wed, 2026-03-25 at 12:17 +0100, Hans Hagen via ntg-context wrote:
>> one gets what one asks for: a font with 40K scripts
> 
> There's "only" 27k characters in the font, which is indeed rather large,
> but mostly unavoidable when 23k of them are Chinese glyphs (since
> removing letters from the alphabet probably isn't a realistic ask).

the number of glyphs is not the issue ... it's the bad feature table 
(here there should ne only a few entries in gsub; gpos is empty) ... 
there are 40K random language tags with each plenty random script tags 
totaling to 750 million combinations

>> so wiping the font from ones disk is the best one can do
> 
> In general, that's not really an option here (we can't delete random
> files from TL), but in this particular case, the file appears to be
> corrupted:
> 
>      https://github.com/myhsia/LXGW-CTAN/issues/5#issuecomment-4126020910
> 
> so I'll go ahead and revert the change in TL directly.

Good as there is no way that we can check every entry/byte/number etc 
in the otf for validity. Hopefully users are a bit conservative wrt 
updating texlive.

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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.