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

Add export support for kerning #112

Open
fdb opened this issue May 12, 2015 · 3 comments
Open

Add export support for kerning #112

fdb opened this issue May 12, 2015 · 3 comments
Milestone

Comments

@fdb
Copy link
Contributor

fdb commented May 12, 2015

Support both the kern table and GPOS.

@felipesanches
Copy link

Issue #152 may be the way to go!

@Balearica
Copy link
Contributor

I implemented a bare-bones interface for writing fonts with GPOS pair kerning for my project Scribe OCR. I plan on turning this into a pull request for opentype.js when I have time, however in the meantime if anybody has a need for writing fonts with kerning, let me know and I can provide code snippets.

One additional note--while it would be easy from a technical perspective to add support for the kern table as well (as specified by the original post), I do not see value in doing so as opentype.js does not support writing TrueType outlines. According to the official spec, for CFF outlines (what opentype.js creates) kerning information should be specified using the GPOS table. While some programs ignore this detail and use the kern table for both CFF and TrueType outlines, the OpenType Sanitizer (used for both Chrome and Firefox) removes the kern table for fonts with CFF outlines.

@Balearica
Copy link
Contributor

For anybody else looking for this feature--I now have an open PR that that supports kerning at #743. Feel free to use the fork linked in that PR.

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

No branches or pull requests

3 participants