diff options
author | Karl Berry <karl@freefriends.org> | 2022-05-23 21:32:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-05-23 21:32:31 +0000 |
commit | d3ad3166eb1820886f232dfd7afb41913d06a0e3 (patch) | |
tree | 0754095402f1fc4f70ca84f7ed7b866e2055e8e8 | |
parent | d55bec8432e846d549d016899a3ee1d46363087e (diff) |
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
-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 */ |