Treat nameID 2 and 17 as font feature record#297
Treat nameID 2 and 17 as font feature record#297ptoussai wants to merge 1 commit intofoliojs:masterfrom
Conversation
|
Can we accept this pull request? @devongovett @blikblum |
|
This wouldn't be correct, though. Name ID 2 and 17 have firmly established meaning, being the font subfamily records (see https://learn.microsoft.com/en-us/typography/opentype/spec/name#name-ids). Playing a guessing game using Name IDs over 25 is fair game, but 1 through 25 are off limits. |
|
Currently, fontKit is giving inconsistent results for fonts that work as intended. The I would argue that regardless of whether Name ID 2 and 17 have firmly established meanings, the current implementation of fontKit is creating errors, and this is a decent way to fix them without causing additional errors. Am I misunderstanding something? |
|
https://learn.microsoft.com/en-us/typography/opentype/otspec180/fvar
Name IDs 2 and 17 have an established meaning, but they can also be referenced by the If anything, the fix is a bit too broad as it makes these Name IDs accessible to other tables, such as Popular font authoring software already make use of this, and Fontkit should support it. |
|
Closing because it is incorrect. Fix is in #324. |
This is a fix for #272