fix(text): render CJK glyphs at non-regular weights on macOS

Vendor femtovg 0.23.2 with a targeted patch: the swash raster path can
fail to scale some variable fonts at a non-default variation instance
(the CFF2-based CJK system fonts on modern macOS), and femtovg cached
those glyphs as permanently missing — so track titles and any other
text at medium/semibold/bold weight rendered blank for CJK while
regular weight (empty coords) worked. render_glyph now retries the
glyph at the font's default instance before giving up: worst case the
glyph draws at regular weight instead of not at all. Fonts and
instances that already render are untouched.

Fixes #543

cc
This commit is contained in:
vicrodh committed 2026-07-05 08:23:17 -06:00
1 parent cf16fa263c
commit 3a1c367d1a
38 files changed
+18170 -2

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
{
"git": {
"sha1": "902c9dda464088159d7426f4b04648ba893d0b8b"
},
"path_in_vcs": ""
}