-
Notifications
You must be signed in to change notification settings - Fork 255
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
Chrome & Firefox errors when loading generated subset TTF fonts, for all fonts #41
Comments
The original fonts work as a preview without any errors in Chrome and Firefox. The subset fonts work just fine in the Windows font preview tool and in Internet Explorer. |
This may be useful: "incorrect entrySelector for table directory" is thrown here:
I have hardcoded incremental values for "misaligned table" is thrown here:
|
Hi sir oxygen.did you have a solution?I have the same problem. @oxygen |
No, and I vaguely remember reporting it to Google, but most likely I didn't. This needs to be reported to Chrome and Firefox and see if its their fault. I mean I don't know enough about fonts to tell where the fault lies. |
@oxygen @jepsonwu @roberthenniger I had the same problem |
@PhenX is there a solution to this problem? How could we solve this issue since it would be awesome to create subsets without installing a big tech stack as npm-fontkit or something similar. |
FWIW, I arrived at this issue from using fontkit :) |
After looking into this a bit more it appears that generated TrueType font files may not fully conform to the spec. I've tested a number of fonts and identified the spec compliance issues that will prevent a font from loading in the browsers. I'm tracking the full list of non-compliance issues in #123. The next release will address the bare minimum of issues identified so that web browsers will load a generated font. |
Thank you!!! |
I have generated a subset font for each font with only the letters from the font's file name.
I was going to use these subset TTF files for a preview of the font.
Using these fonts: https://github.com/google/fonts
All 1736 fonts fails with one of these errors:
(index):1 OTS parsing error: incorrect entrySelector for table directory
(index):1 OTS parsing error: hhea: misaligned table
This is the code I am using to generate the subset files:
The text was updated successfully, but these errors were encountered: