From f9a1546ca783c058994759dc3443d2e0d9929267 Mon Sep 17 00:00:00 2001 From: wbfsa Date: Thu, 1 Oct 2020 12:43:02 +0800 Subject: [PATCH] fix(fonts bug on ie): fit it --- src/utils/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/util.js b/src/utils/util.js index 48b3bed..30a272f 100644 --- a/src/utils/util.js +++ b/src/utils/util.js @@ -378,7 +378,7 @@ function luckysheetfontformat(format) { // fontfamily = fontarray[fontjson[format.ff]]; fontfamily = format.ff; - if(fontfamily!=null && !document.fonts.check("12px "+fontfamily)){ + if(fontfamily!=null && document.fonts && !document.fonts.check("12px "+fontfamily)){ menuButton.addFontTolist(fontfamily); } }