From d3ad3166eb1820886f232dfd7afb41913d06a0e3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 23 May 2022 21:32:31 +0000 Subject: accept os/2 table v4, as seen in GentiumPlus-Regular.ttf v6.101 (pdftex r881, r882) git-svn-id: svn://tug.org/texlive/trunk@63385 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/pdftexdir/ChangeLog | 7 +++++++ Build/source/texk/web2c/pdftexdir/writettf.c | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'Build/source/texk') diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog index 4ba85b55042..6737f0b9704 100644 --- a/Build/source/texk/web2c/pdftexdir/ChangeLog +++ b/Build/source/texk/web2c/pdftexdir/ChangeLog @@ -1,3 +1,10 @@ +2022-05-23 Thanh Han The + + * 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 * pdftex.web (pdf_omit_info_dict_code), diff --git a/Build/source/texk/web2c/pdftexdir/writettf.c b/Build/source/texk/web2c/pdftexdir/writettf.c index 4ae5092e6b9..d49117ce97e 100644 --- a/Build/source/texk/web2c/pdftexdir/writettf.c +++ b/Build/source/texk/web2c/pdftexdir/writettf.c @@ -1,5 +1,5 @@ /* -Copyright 1996-2014 Han The Thanh, +Copyright 1996-2022 Han The Thanh, This file is part of pdfTeX. @@ -1216,8 +1216,8 @@ static void ttf_write_OS2(void) 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 */ -- cgit v1.2.3