Skip to content
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

Merged
merged 6 commits into from
Jul 21, 2020

Conversation

josh-hadley
Copy link
Collaborator

@josh-hadley josh-hadley commented Jul 21, 2020

Description

Update .fea parsing to accept token FamilyClass for OS/2 table definitions (sets the OS/2.sFamilyClass field). Syntax is:
FamilyClass <number> (inside of a table 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 and int16_t (intsead of unsigned short and short) 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

@@ -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 */
Copy link
Contributor

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.

Copy link
Collaborator Author

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

Copy link
Contributor

@cjchapman cjchapman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@punchcutter punchcutter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@josh-hadley josh-hadley merged commit ab325c6 into develop Jul 21, 2020
@josh-hadley josh-hadley deleted the jh-parse-familyclass branch July 21, 2020 17:54
1div0 pushed a commit to 1div0/afdko that referenced this pull request Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[makeotfexe] support for OS/2 sFamilyClass
3 participants