mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: remove accidental multiline from font family string and updated test snapshots
This commit is contained in:
parent
48dc8e9367
commit
b89743a8cd
4 changed files with 13 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue