pdftex[881]

commits+thanh at tug.org commits+thanh at tug.org
Sun May 22 10:36:58 CEST 2022


Revision: 881
          http://tug.org/svn/pdftex?view=revision&revision=881
Author:   thanh
Date:     2022-05-22 10:36:57 +0200 (Sun, 22 May 2022)
Log Message:
-----------
bugfix: pdftex can't read gentium.ttf

Modified Paths:
--------------
    branches/stable/source/src/texk/web2c/pdftexdir/writettf.c

Modified: branches/stable/source/src/texk/web2c/pdftexdir/writettf.c
===================================================================
--- branches/stable/source/src/texk/web2c/pdftexdir/writettf.c	2022-05-22 08:36:31 UTC (rev 880)
+++ branches/stable/source/src/texk/web2c/pdftexdir/writettf.c	2022-05-22 08:36:57 UTC (rev 881)
@@ -1216,7 +1216,7 @@
     TTF_USHORT version;
     ttf_reset_chksm(tab);
     version = get_ushort();
-    if (version > 3)
+    if (version > 5)
         pdftex_fail("unknown version of OS/2 table (%.4X)", version);
     (void) put_ushort(0x0001);  /* fix version to 1 */
     ttf_ncopy(2 * TTF_USHORT_SIZE + 13 * TTF_SHORT_SIZE + 10 * TTF_BYTE_SIZE);



More information about the pdftex-commits mailing list.