From d3c5a354b6e0d6ae278ce5b3b279416e5ad40250 Mon Sep 17 00:00:00 2001 From: ReadRoberts Date: Wed, 15 Jul 2015 10:48:25 -0700 Subject: [PATCH] Fix an old bug where setting the Italic bit in the fsSelection field of the OS/2 table would cause the OS/2 table version to be set to 4. --- FDK/Tools/Programs/makeotf/makeotf_lib/api/hotconv.h | 2 +- FDK/Tools/Programs/makeotf/makeotf_lib/source/hotconv/OS_2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FDK/Tools/Programs/makeotf/makeotf_lib/api/hotconv.h b/FDK/Tools/Programs/makeotf/makeotf_lib/api/hotconv.h index 43a827d7e..1d8dc21d4 100644 --- a/FDK/Tools/Programs/makeotf/makeotf_lib/api/hotconv.h +++ b/FDK/Tools/Programs/makeotf/makeotf_lib/api/hotconv.h @@ -10,7 +10,7 @@ This software is licensed as OpenSource, under the Apache License, Version 2.0. extern "C" { #endif -#define HOT_VERSION 0x010055 /* Library version (1.0.85) */ +#define HOT_VERSION 0x010056 /* Library version (1.0.86) */ /*Warning: this string is now part of heuristic used by CoolType to identify the first round of CoolType fonts which had the backtrack sequence of a chaining contextual substitution ordered incorrectly. Fonts with the old ordering MUST match diff --git a/FDK/Tools/Programs/makeotf/makeotf_lib/source/hotconv/OS_2.c b/FDK/Tools/Programs/makeotf/makeotf_lib/source/hotconv/OS_2.c index dc99cbac1..fed755c72 100644 --- a/FDK/Tools/Programs/makeotf/makeotf_lib/source/hotconv/OS_2.c +++ b/FDK/Tools/Programs/makeotf/makeotf_lib/source/hotconv/OS_2.c @@ -375,7 +375,7 @@ int OS_2Fill(hotCtx g) { if (h->tbl.usLowerOpticalPointSize > 0) { h->tbl.version = g->font.os2Version = 5; } - else if ((h->tbl.fsSelection & ~0xfe) > 0) { + else if ((h->tbl.fsSelection & ~0xff) > 0) { /* If any of the OS/2 v 4 fsSelection bits are on.*/ h->tbl.version = g->font.os2Version = 4; }