fix: remove accidental multiline from font family string and updated test snapshots

This commit is contained in:
Sachintha Lakmin 2025-04-22 15:49:21 +05:30
parent 48dc8e9367
commit b89743a8cd
No known key found for this signature in database
GPG key ID: 6A88A1FE5C8627D0
4 changed files with 13 additions and 15 deletions

View file

@ -106,13 +106,11 @@ export const getFontFamilyString = ({
// Fallback to generic family names first, then to specific font family names
// currently only serif is added as a generic font family
return `${fontFamilyString}
${getGenericFontsForFallbacks()
.map((x) => `, ${x}`)
.join("")}
${getFontFamilyFallbacks(fontFamily)
.map((x) => `, ${x}`)
.join("")}`;
return `${fontFamilyString}${getGenericFontsForFallbacks()
.map((x) => `, ${x}`)
.join("")}${getFontFamilyFallbacks(fontFamily)
.map((x) => `, ${x}`)
.join("")}`;
}
}
return WINDOWS_EMOJI_FALLBACK_FONT;