Skip to content

Commit

Permalink
Fix an old bug where setting the Italic bit in the fsSelection field …
Browse files Browse the repository at this point in the history
…of the OS/2 table would cause the OS/2 table version to be set to 4.
  • Loading branch information
readroberts committed Jul 15, 2015
1 parent f3ec234 commit d3c5a35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FDK/Tools/Programs/makeotf/makeotf_lib/api/hotconv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d3c5a35

Please sign in to comment.