-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle fonts with missing or invalid OS/2 tables (#2985)
It turns out this happens more than I thought. Most notably, apple's fallback font for a bunch of symbols, `Apple Gothic`, has no OS/2 table 🙃. I've gone ahead and fixed it so that both CoreText and FreeType handle this gracefully. Speaking of graceful handling, this problem came to attention due to our very *un*-graceful handling of when a font fails to load due to a metrics calculation error. It results in a bunch of blanked out text, very bad, we should fix that. *At some point I'll try to collect a group of test fonts with all sorts of weirdnesses to exercise the weird edge cases in our handling.*
- Loading branch information
Showing
3 changed files
with
179 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.