mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix display of some emoji on Windows (#1933)
This commit is contained in:
parent
e2640edb79
commit
29f803e25d
2 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,10 @@
|
|||
import { FlooredNumber } from "./types";
|
||||
import { getZoomOrigin } from "./scene";
|
||||
import { CURSOR_TYPE, FONT_FAMILY } from "./constants";
|
||||
import {
|
||||
CURSOR_TYPE,
|
||||
FONT_FAMILY,
|
||||
WINDOWS_EMOJI_FALLBACK_FONT,
|
||||
} from "./constants";
|
||||
import { FontFamily, FontString } from "./element/types";
|
||||
|
||||
export const SVG_NS = "http://www.w3.org/2000/svg";
|
||||
|
@ -66,7 +70,7 @@ export const getFontFamilyString = ({
|
|||
}: {
|
||||
fontFamily: FontFamily;
|
||||
}) => {
|
||||
return FONT_FAMILY[fontFamily];
|
||||
return `${FONT_FAMILY[fontFamily]}, ${WINDOWS_EMOJI_FALLBACK_FONT}`;
|
||||
};
|
||||
|
||||
/** returns fontSize+fontFamily string for assignment to DOM elements */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue