-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
astral/text/freetype_face_generator: work arounds for when Freetype r…
…eports a zero size for a COLR0 glyph This issue is seen in the font from https://github.com/mozilla/twemoji-colr/. Indeed, this issue: mozilla/twemoji-colr#50 which dates back to 2019 is still active (so over 3 and half years) where some browsers do not render anything either for the glyphs. This code does the work around that if the size is reported as 0 for a COLR0 glyph, then we derived the layout offsets and size entirely from the union of the bounding boxes of the layers. Seems to work.
- Loading branch information
Showing
1 changed file
with
53 additions
and
6 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