-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[makeotfexe] support OS/2.sFamilyClass in feature files #1192
Conversation
- add support to parse "FamilyClass" key of OS/2 tables in .fea files - update relevant version #s
@@ -345,7 +346,7 @@ int OS_2Fill(hotCtx g) { | |||
h->tbl.yStrikeoutSize = font->win.StrikeOutSize; | |||
h->tbl.yStrikeoutPosition = font->win.StrikeOutPosition; | |||
|
|||
h->tbl.sFamilyClass = CLASS_NONE; /* No classification */ | |||
// h->tbl.sFamilyClass = CLASS_NONE; /* No classification */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this commented-out code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d'oh! Thanks for catching this. Fixed in a41e3f9
per review in #1192
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Update .fea parsing to accept token
FamilyClass
for OS/2 table definitions (sets theOS/2.sFamilyClass
field). Syntax is:FamilyClass <number>
(inside of atable OS/2 { ... } OS/2
block).<number>
can be any decimal, hexadecimal, or octal number from 0 - 65535.Related: updated a number of OS/2 table field definitions to use
uint16_t
andint16_t
(intsead ofunsigned short
andshort
) as part of an overall effort to use explicit bit lengths in OpenType tables.Added/updated tests, documentation, and updated version #s in relevant modules.
Closes #1191