fix: add generic font family fallbacks before Segoe UI Emoji to fix glyph rendering on windows (#9425)

This commit is contained in:
Sachintha Lakmin
2025-06-10 17:13:39 +05:30
committed by GitHub
parent d108053351
commit 9e77373c81
5 changed files with 40 additions and 11 deletions
-1
View File
@@ -103,7 +103,6 @@ export const getFontFamilyString = ({
}) => {
for (const [fontFamilyString, id] of Object.entries(FONT_FAMILY)) {
if (id === fontFamily) {
// TODO: we should fallback first to generic family names first
return `${fontFamilyString}${getFontFamilyFallbacks(id)
.map((x) => `, ${x}`)
.join("")}`;