[NTG-context] Re: "mtxrun --script fonts --reload" hangs when loading "LXGWNeoXiHei.ttf"

2026-03-25 Thread Arthur Rosendahl
On Wed, Mar 25, 2026 at 02:31:32PM +0100, Arthur Rosendahl wrote:
> Also, from a quick look it
> seems that XeTeX is run with the -no-pdf option:
> 
>   
> https://github.com/myhsia/LXGW-CTAN/actions/runs/23419659711/job/68121899170#step:4:96

  Never mind, it does produce an XDV file, and calls xdvipdfmx on it.
Regardless, I don’t think the resulting PDF file is kept available
anywhere to look at afterwards.

Best,

Arthur
___
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
___


[NTG-context] Re: "mtxrun --script fonts --reload" hangs when loading "LXGWNeoXiHei.ttf"

2026-03-25 Thread Max Chernoff via ntg-context
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.ttf2Version 1.242;February 27, 2026LXGW Neo XiHei:Version 1.242
github.ttf  2Version 1.242;February 27, 2026LXGW Neo XiHei:Version 1.242
upstream.ttf2Version 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
___


[NTG-context] Re: "mtxrun --script fonts --reload" hangs when loading "LXGWNeoXiHei.ttf"

2026-03-25 Thread Arthur Rosendahl
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:


https://github.com/myhsia/LXGW-CTAN/actions/runs/23419659711/job/68121899170#step:4:96

  Arthur
___
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
___


[NTG-context] Re: "mtxrun --script fonts --reload" hangs when loading "LXGWNeoXiHei.ttf"

2026-03-25 Thread Max Chernoff via ntg-context
Hi Hans,

On Wed, 2026-03-25 at 13:52 +0100, Hans Hagen wrote:
> On 3/25/2026 1:17 PM, Max Chernoff wrote:
>
> > so I'll go ahead and revert the change in TL directly.
>
> As there is 'pretest' for the anual texlive, why isn't there something
> liek that for an update ... and then only update once per month or so:
> pretest 15th, update 1th so a 14 day test period.

Well, there are about 10 package updates every day, and this is the only
time in the past 5 years where I can remember an update to one package
("lxgw-fonts") breaking completely unrelated packages ("luaotfload" and
"context"), even when the broken package is never loaded.

And even then, the breakage was relatively minimal: it only affected
users who use LuaLaTeX or ConTeXt (both of which are much less popular
than pdfLaTeX), only if they tried to reload the font name database
(which can happen automatically after installation or if you try to load
a font that doesn't exist, otherwise it only runs manually), and only if
they updated their TL installation in the ~3 day window where the broken
package was present.

The other problem is that hardly anyone uses the pretests, so unless
something popular is completely broken, it'll probably be missed (look
at the math italics stuff from last year for an example).

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
___


[NTG-context] Re: "mtxrun --script fonts --reload" hangs when loading "LXGWNeoXiHei.ttf"

2026-03-25 Thread Hans Hagen via ntg-context

On 3/25/2026 1:17 PM, Max Chernoff wrote:


so I'll go ahead and revert the change in TL directly.


As there is 'pretest' for the anual texlive, why isn't there something 
liek that for an update ... and then only update once per month or so: 
pretest 15th, update 1th so a 14 day test period.


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
___


[NTG-context] Re: "mtxrun --script fonts --reload" hangs when loading "LXGWNeoXiHei.ttf"

2026-03-25 Thread Hans Hagen via ntg-context

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
___


[NTG-context] Re: "mtxrun --script fonts --reload" hangs when loading "LXGWNeoXiHei.ttf"

2026-03-25 Thread luigi scarso
On Wed, 25 Mar 2026 at 12:28, Hans Hagen  wrote:

> On 3/25/2026 11:34 AM, luigi scarso wrote:
> >
> >
> > On Wed, 25 Mar 2026 at 10:53, Hans Hagen via ntg-context  > [email protected] > wrote:
> >
> > On 3/25/2026 5:40 AM, Max Chernoff via ntg-context wrote:
> >
> >  >  $ wget 'https://mirrors.ctan.org/fonts/lxgw-fonts/
> > LXGWNeoXiHei.ttf  > LXGWNeoXiHei.ttf>'
> >
> > are these fonts actually tested at all before being uploaded
> >
> >
> > Using ttx should be doable, I think
> >
> > $ ttx LXGWNeoXiHei.ttf
> >
> > Dumping "LXGWNeoXiHei.ttf" to "LXGWNeoXiHei#2.ttx"...
> > Dumping 'GlyphOrder' table...
> > ERROR: An exception occurred during the decompilation of the 'post' table
> > Traceback (most recent call last):
> >File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py",
> > line 482, in _readTable
> >  table.decompile(data, self)
> >File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/tables/
> > _p_o_s_t.py", line 52, in decompile
> >  raise ttLib.TTLibError(
> > fontTools.ttLib.TTLibError: 'post' table format 7865.120026 not supported
> > ERROR: Unhandled exception has occurred
> > Traceback (most recent call last):
> >File "/<..>/lib/python3.10/site-packages/fontTools/ttx.py", line 452,
> > in main
> >  process(jobs, options)
> >File "/<..>/lib/python3.10/site-packages/fontTools/ttx.py", line 434,
> > in process
> >  action(input, output, options)
> >File "/<..>/lib/python3.10/site-packages/fontTools/misc/
> > loggingTools.py", line 375, in wrapper
> >  return func(*args, **kwds)
> >File "/<..>/lib/python3.10/site-packages/fontTools/ttx.py", line 295,
> > in ttDump
> >  ttf.saveXML(
> >File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py",
> > line 289, in saveXML
> >  self._saveXML(writer, **kwargs)
> >File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py",
> > line 354, in _saveXML
> >  self._tableToXML(tableWriter, tag, splitGlyphs=splitGlyphs)
> >File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py",
> > line 386, in _tableToXML
> >  table.toXML(writer, self)
> >File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py",
> > line 866, in toXML
> >  glyphOrder = ttFont.getGlyphOrder()
> >File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py",
> > line 543, in getGlyphOrder
> >  glyphOrder = self["post"].getGlyphOrder()
> > AttributeError: 'DefaultTable' object has no attribute 'getGlyphOrder'
> >
> > at least as long as it's supported...
>
> ah, it already crashes out on the post table ... lucky it doesn't
> continue till it has to read features (billions of reads to get these
> basic script/language tables loaded, apart from lookups etc) .. no
> surprise that applicatiosn that allocate mem beforehand crap out (lua
> allocates as it goes along so indeed we use gigabytes of mem here) ..
> imagine the xml files ttx would produce
>
>
also
https://github.com/khaledhosny/ots
fails quickly
(latest precompiled https://github.com/khaledhosny/ots/releases/tag/v9.2.0
, 2024,  but it's not a dead project).


If at least two independent tools fails  the file should be rejected, there
is a risk of a dos (not necessarily intentional).

--
luigi
___
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
___


[NTG-context] Re: "mtxrun --script fonts --reload" hangs when loading "LXGWNeoXiHei.ttf"

2026-03-25 Thread Max Chernoff via ntg-context
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.

On Wed, 2026-03-25 at 10:52 +0100, Hans Hagen via ntg-context wrote:
> On 3/25/2026 5:40 AM, Max Chernoff via ntg-context wrote:
>
> >  $ wget 'https://mirrors.ctan.org/fonts/lxgw-fonts/LXGWNeoXiHei.ttf'
>
> are these fonts actually tested at all before being uploaded

Yes, but only with XeLaTeX:

https://github.com/myhsia/LXGW-CTAN/actions/runs/23419659711/job/68121899170

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

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

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
___


[NTG-context] Re: "mtxrun --script fonts --reload" hangs when loading "LXGWNeoXiHei.ttf"

2026-03-25 Thread Hans Hagen via ntg-context

On 3/25/2026 12:17 PM, Hans Hagen via ntg-context wrote:

On 3/25/2026 10:52 AM, Hans Hagen via ntg-context wrote:

On 3/25/2026 5:40 AM, Max Chernoff via ntg-context wrote:


 $ wget 'https://mirrors.ctan.org/fonts/lxgw-fonts/LXGWNeoXiHei.ttf'


are these fonts actually tested at all before being uploaded


one gets what one asks for: a font with 40K scripts each with tens of 
thousands of languages ... so indeed a loop can take some time (and 
memory) ... even for lua that takes a while (say an hour for that font)


now a morning wasted for nothing so i just decide all is okay

so wiping the font from ones disk is the best one can do


It did finish reading after 40234 languages and 703655710 script entries
each 4 reads + some more, so half an hour on my machine) but then needed 
more than the 48 GB I have so I aborted in order not to destroy my ssd 
... so indeed: don't install these fonts right now (the rpi 5/16 sitting 
on my desk would already have burned out i guess).


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
___


[NTG-context] Re: "mtxrun --script fonts --reload" hangs when loading "LXGWNeoXiHei.ttf"

2026-03-25 Thread Hans Hagen via ntg-context

On 3/25/2026 11:34 AM, luigi scarso wrote:



On Wed, 25 Mar 2026 at 10:53, Hans Hagen via ntg-context [email protected] > wrote:


On 3/25/2026 5:40 AM, Max Chernoff via ntg-context wrote:

 >      $ wget 'https://mirrors.ctan.org/fonts/lxgw-fonts/
LXGWNeoXiHei.ttf '

are these fonts actually tested at all before being uploaded


Using ttx should be doable, I think

$ ttx LXGWNeoXiHei.ttf

Dumping "LXGWNeoXiHei.ttf" to "LXGWNeoXiHei#2.ttx"...
Dumping 'GlyphOrder' table...
ERROR: An exception occurred during the decompilation of the 'post' table
Traceback (most recent call last):
   File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py", 
line 482, in _readTable

     table.decompile(data, self)
   File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/tables/ 
_p_o_s_t.py", line 52, in decompile

     raise ttLib.TTLibError(
fontTools.ttLib.TTLibError: 'post' table format 7865.120026 not supported
ERROR: Unhandled exception has occurred
Traceback (most recent call last):
   File "/<..>/lib/python3.10/site-packages/fontTools/ttx.py", line 452, 
in main

     process(jobs, options)
   File "/<..>/lib/python3.10/site-packages/fontTools/ttx.py", line 434, 
in process

     action(input, output, options)
   File "/<..>/lib/python3.10/site-packages/fontTools/misc/ 
loggingTools.py", line 375, in wrapper

     return func(*args, **kwds)
   File "/<..>/lib/python3.10/site-packages/fontTools/ttx.py", line 295, 
in ttDump

     ttf.saveXML(
   File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py", 
line 289, in saveXML

     self._saveXML(writer, **kwargs)
   File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py", 
line 354, in _saveXML

     self._tableToXML(tableWriter, tag, splitGlyphs=splitGlyphs)
   File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py", 
line 386, in _tableToXML

     table.toXML(writer, self)
   File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py", 
line 866, in toXML

     glyphOrder = ttFont.getGlyphOrder()
   File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py", 
line 543, in getGlyphOrder

     glyphOrder = self["post"].getGlyphOrder()
AttributeError: 'DefaultTable' object has no attribute 'getGlyphOrder'

at least as long as it's supported...


ah, it already crashes out on the post table ... lucky it doesn't 
continue till it has to read features (billions of reads to get these 
basic script/language tables loaded, apart from lookups etc) .. no 
surprise that applicatiosn that allocate mem beforehand crap out (lua 
allocates as it goes along so indeed we use gigabytes of mem here) .. 
imagine the xml files ttx would produce


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
___


[NTG-context] Re: "mtxrun --script fonts --reload" hangs when loading "LXGWNeoXiHei.ttf"

2026-03-25 Thread Hans Hagen via ntg-context

On 3/25/2026 10:52 AM, Hans Hagen via ntg-context wrote:

On 3/25/2026 5:40 AM, Max Chernoff via ntg-context wrote:


 $ wget 'https://mirrors.ctan.org/fonts/lxgw-fonts/LXGWNeoXiHei.ttf'


are these fonts actually tested at all before being uploaded


one gets what one asks for: a font with 40K scripts each with tens of 
thousands of languages ... so indeed a loop can take some time (and 
memory) ... even for lua that takes a while (say an hour for that font)


now a morning wasted for nothing so i just decide all is okay

so wiping the font from ones disk is the best one can do

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
___


[NTG-context] Re: "mtxrun --script fonts --reload" hangs when loading "LXGWNeoXiHei.ttf"

2026-03-25 Thread luigi scarso
On Wed, 25 Mar 2026 at 10:53, Hans Hagen via ntg-context 
wrote:

> On 3/25/2026 5:40 AM, Max Chernoff via ntg-context wrote:
>
> >  $ wget 'https://mirrors.ctan.org/fonts/lxgw-fonts/LXGWNeoXiHei.ttf'
>
> are these fonts actually tested at all before being uploaded
>
>
Using ttx should be doable, I think

$ ttx LXGWNeoXiHei.ttf

Dumping "LXGWNeoXiHei.ttf" to "LXGWNeoXiHei#2.ttx"...
Dumping 'GlyphOrder' table...
ERROR: An exception occurred during the decompilation of the 'post' table
Traceback (most recent call last):
  File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py", line
482, in _readTable
table.decompile(data, self)
  File
"/<..>/lib/python3.10/site-packages/fontTools/ttLib/tables/_p_o_s_t.py",
line 52, in decompile
raise ttLib.TTLibError(
fontTools.ttLib.TTLibError: 'post' table format 7865.120026 not supported
ERROR: Unhandled exception has occurred
Traceback (most recent call last):
  File "/<..>/lib/python3.10/site-packages/fontTools/ttx.py", line 452, in
main
process(jobs, options)
  File "/<..>/lib/python3.10/site-packages/fontTools/ttx.py", line 434, in
process
action(input, output, options)
  File "/<..>/lib/python3.10/site-packages/fontTools/misc/loggingTools.py",
line 375, in wrapper
return func(*args, **kwds)
  File "/<..>/lib/python3.10/site-packages/fontTools/ttx.py", line 295, in
ttDump
ttf.saveXML(
  File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py", line
289, in saveXML
self._saveXML(writer, **kwargs)
  File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py", line
354, in _saveXML
self._tableToXML(tableWriter, tag, splitGlyphs=splitGlyphs)
  File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py", line
386, in _tableToXML
table.toXML(writer, self)
  File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py", line
866, in toXML
glyphOrder = ttFont.getGlyphOrder()
  File "/<..>/lib/python3.10/site-packages/fontTools/ttLib/ttFont.py", line
543, in getGlyphOrder
glyphOrder = self["post"].getGlyphOrder()
AttributeError: 'DefaultTable' object has no attribute 'getGlyphOrder'

at least as long as it's supported...

--
luigi
___
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
___


[NTG-context] Re: "mtxrun --script fonts --reload" hangs when loading "LXGWNeoXiHei.ttf"

2026-03-25 Thread Hans Hagen via ntg-context

On 3/25/2026 5:40 AM, Max Chernoff via ntg-context wrote:


 $ wget 'https://mirrors.ctan.org/fonts/lxgw-fonts/LXGWNeoXiHei.ttf'


are these fonts actually tested at all before being uploaded

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
___


[NTG-context] Re: "mtxrun --script fonts --reload" hangs when loading "LXGWNeoXiHei.ttf"

2026-03-25 Thread Hans Hagen via ntg-context

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 ... fontforge also crashes on it and typetool 
immediately runs out of memory ... i'm not sure if i want to check in 
which loop it sticks (already wasted an hour on checking the other fonts 
you mention).


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
___