Error reading fonts with version 0 OS/2 table
27 Nov
2018
27 Nov
'18
6:03 a.m.
Hi all, LuaTeX stops with an error when reading version 0 OS/2 table, and this is is because it unconditionally reads ulCodePageRange1 and ulCodePageRange2 fields that were not defined in version 0. Such fonts can be found here [1] (from the question [2]). I’m attaching a patch that makes this conditional, it also fixed reading version 2 specific fields that would be skipped for tables with versions greater than 2. It does not look like these fields are used anywhere, so another fix is to only read the fields LuaTeX actually needs. Regards, Khaled 1. https://mp.uu.se/documents/432512/911262/18350_Typsnitt_PC.zip/4c0954cf-84b5... 2. https://tex.stackexchange.com/q/430837/729
2194
Age (days ago)
2194
Last active (days ago)
0 comments
1 participants
participants (1)
-
Khaled Hosny