texlive[63385] Build/source/texk/web2c/pdftexdir: accept os/2 table
commits+karl at tug.org
commits+karl at tug.org
Mon May 23 23:32:31 CEST 2022
Revision: 63385
http://tug.org/svn/texlive?view=revision&revision=63385
Author: karl
Date: 2022-05-23 23:32:31 +0200 (Mon, 23 May 2022)
Log Message:
-----------
accept os/2 table v4, as seen in GentiumPlus-Regular.ttf v6.101 (pdftex r881, r882)
Revision Links:
--------------
http://tug.org/svn/texlive?view=revision&revision=881
http://tug.org/svn/texlive?view=revision&revision=882
Modified Paths:
--------------
trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
trunk/Build/source/texk/web2c/pdftexdir/writettf.c
Modified: trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/ChangeLog 2022-05-23 20:54:40 UTC (rev 63384)
+++ trunk/Build/source/texk/web2c/pdftexdir/ChangeLog 2022-05-23 21:32:31 UTC (rev 63385)
@@ -1,3 +1,10 @@
+2022-05-23 Thanh Han The <hanthethanh at gmail.com>
+
+ * writettf.c (ttf_write_OS2): don't complain about v4 of OS/2
+ table, present in GentiumPlus-Regular.ttf, v6.101,
+ released recently. Also, make the complaint about future versions
+ a warning instead of a failure.
+
2022-04-17 Thanh Han The <hanthethanh at gmail.com>
* pdftex.web (pdf_omit_info_dict_code),
Modified: trunk/Build/source/texk/web2c/pdftexdir/writettf.c
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/writettf.c 2022-05-23 20:54:40 UTC (rev 63384)
+++ trunk/Build/source/texk/web2c/pdftexdir/writettf.c 2022-05-23 21:32:31 UTC (rev 63385)
@@ -1,5 +1,5 @@
/*
-Copyright 1996-2014 Han The Thanh, <thanh at pdftex.org>
+Copyright 1996-2022 Han The Thanh, <thanh at pdftex.org>
This file is part of pdfTeX.
@@ -1216,8 +1216,8 @@
TTF_USHORT version;
ttf_reset_chksm(tab);
version = get_ushort();
- if (version > 3)
- pdftex_fail("unknown version of OS/2 table (%.4X)", version);
+ if (version > 5)
+ pdftex_warn("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);
ttf_skip(4 * TTF_ULONG_SIZE); /* ulUnicodeRange 1--4 */
More information about the tex-live-commits
mailing list.