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.

Best regards,
Marc

Reply via email to