-
Notifications
You must be signed in to change notification settings - Fork 469
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
Support CFF2 #249
Comments
Yes, it would be awesome if we could support this! |
Unfortunately that test font also has lots of new 'prototype' stuff for font variations. It would be wonderful to find a 'plain' sample file or three of fonts with CFF2 tables. (sigh) BTW: is anyone playing with this yet, in terms of code here? I might be interested if not... |
BTW: also note the 'subset' font created for the text-rendering-tests at AdobeVFPrototype-Subset.otf Much smaller with only 3 glyphs defined. (7K vs 227K) Yuck. These fonts (from Adobe and subset) have embedded everything to do with font variations, including the new 'blend' charstring operator which has a variable number of operands, depending on the number of variation 'regions' as defined in other sfnt tables ( But still asking - anyone know of any other fonts that have only the new |
I’m not aware of any non-variable CFF2 fonts; variations are are core part of the CFF2 format. (By the way, OpenType.js already supports the |
Just implemented CFF2 in fontkit. The format is not actually all that different from CFF1. Just a couple new operators, and a few things removed and moved to other existing tables (e.g. no more glyph names). The variation stuff is really the meat of it. If you're curious, here's the code: foliojs/fontkit#88 |
Bumping this issue becuase it's been 2 years since it got filed, and CFF2 is only getting more support, not less =) Also note that CFF2 makes a whole heap of sense for non-fvar fonts, because it's even more compact than CFF, finally leaving all the metadata up to the opentype tables and only concerning itself with the glyphs themselves, similar to the glyf table, except with cubic curves and subroutines. |
Started working on CFF2 support: https://github.com/opentypejs/opentype.js/tree/WIP/cff2 |
Specification: https://www.microsoft.com/typography/otspec/cff2.htm
Tests: https://raw.githack.com/unicode-org/text-rendering-tests/master/reports/FreeStack.html#CFF2-1
Test font: https://github.com/adobe-fonts/adobe-variable-font-prototype/releases/tag/1.001
The text was updated successfully, but these errors were encountered: