From cf6e1562531a5e85b5dc843a426a70804b29684f Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 5 Mar 2021 10:52:36 +0800 Subject: [PATCH] =?UTF-8?q?BI-82230=20fix:=20=E6=8F=92=E5=85=A5=E5=8F=82?= =?UTF-8?q?=E6=95=B0image=E5=AD=97=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/platform/web/dom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/platform/web/dom.js b/src/core/platform/web/dom.js index 8f1d8105e3..f8085ba135 100644 --- a/src/core/platform/web/dom.js +++ b/src/core/platform/web/dom.js @@ -127,11 +127,11 @@ BI.Widget._renderEngine.createElement("body").append(canvas); var ctx = canvas.getContext("2d"); - ctx.font = "12px Georgia"; + ctx.font = "12px Helvetica Neue,Arial,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Heiti,黑体,sans-serif"; var w = ctx.measureText(param).width + 4; canvas.width = w * ratio; canvas.height = 16 * ratio; - ctx.font = 12 * ratio + "px Georgia"; + ctx.font = 12 * ratio + "px Helvetica Neue,Arial,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Heiti,黑体,sans-serif"; ctx.fillStyle = fillStyle || "#3685f2"; ctx.textBaseline = "middle"; // ctx.fillStyle = "#EAF2FD";