On Thu, 3 Jul 2025 at 14:52, marc <marcpenni...@gmail.com> wrote: > Hi all, > > I recently stumbled upon a problem in the legacy (non-Unicode) handling > of Truetype fonts that Luatex inherited from Pdftex. > > The problem is in the file source/texk/web2c/luatexdir/font/writettf.c, > in the function ttf_write_OS2() on line 1313. This function returns an > error if the version of the OS/2 table in the font is greater than 3, > but recent versions of Opentype have added versions 4 and 5 of this > table. (And most font editors seem to use version 4 by default.) > > This problem is of course easily fixed, and it has in fact already been > fixed in the original Pdftex code, see > < > https://svn.tug.org:8369/texlive/trunk/Build/source/texk/web2c/pdftexdir/writettf.c?pathrev=63385&r1=63385&r2=63384 > >. > > It would be great if this fix would be applied to Luatex as well. > > Done commit 7c54758685c7c1ff176306c606a075be77e3535f (HEAD -> master, origin/master, origin/HEAD) Author: Luigi Scarso <luigi.sca...@gmail.com> Date: Sat Jul 5 12:36:17 2025 +0200
Fix for legacy handling of truetype fonts (thanks to marcpenninga) -- luigi