From 2dfb1089ca2638c066c1a88161f925fe025639af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=AF=E6=86=B2?= Date: Thu, 11 Jan 2024 15:35:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=AA=E9=A6=96=E5=AD=97=E7=AC=A6=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E3=80=8C"=E3=80=8D=E4=B9=8B=E5=88=A4=E6=96=B7=20(#218?= =?UTF-8?q?7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/util/strings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/util/strings.js b/src/core/util/strings.js index 6922fee9b..9a3a0555d 100644 --- a/src/core/util/strings.js +++ b/src/core/util/strings.js @@ -243,7 +243,7 @@ export function getFont(style) { return (style['textStyle'] && style['textStyle'] !== 'normal' ? style['textStyle'] + ' ' : '') + (style['textWeight'] && style['textWeight'] !== 'normal' ? style['textWeight'] + ' ' : '') + textSize + 'px ' + - (!style['textFaceName'] ? DEFAULT_FONT : (style['textFaceName'][0] === '"' ? style['textFaceName'] : '"' + style['textFaceName'] + '"')); + (style['textFaceName'] ? style['textFaceName'] : DEFAULT_FONT); } }