diff options
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/ChangeLog | 7 | ||||
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/writettf.c | 6 |
2 files changed, 10 insertions, 3 deletions
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 <hanthethanh@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@gmail.com> * 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, <thanh@pdftex.org> +Copyright 1996-2022 Han The Thanh, <thanh@pdftex.org> 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 */ |