From d1df6f0531c9e6e31b27f85a9de5c557b1669f20 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 8 Jan 2025 15:13:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=90=8E=E7=AB=AFexcel=E6=B0=B4=E5=8D=B0=E5=9C=A8=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E7=B3=BB=E7=BB=9F=E6=97=A0=E6=B3=95=E8=AF=86=E5=88=AB?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/dataease/commons/utils/ExcelWatermarkUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-backend/src/main/java/io/dataease/commons/utils/ExcelWatermarkUtils.java b/core/core-backend/src/main/java/io/dataease/commons/utils/ExcelWatermarkUtils.java index b5697bdefc..ffe2493039 100644 --- a/core/core-backend/src/main/java/io/dataease/commons/utils/ExcelWatermarkUtils.java +++ b/core/core-backend/src/main/java/io/dataease/commons/utils/ExcelWatermarkUtils.java @@ -107,7 +107,7 @@ public class ExcelWatermarkUtils { g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); // 设置字体 - g2d.setFont(new Font("Arial", Font.PLAIN, fontSize)); + g2d.setFont(new Font("Microsoft YaHei", Font.PLAIN, fontSize)); g2d.setColor(new Color(baseColor.getRed(), baseColor.getGreen(), baseColor.getBlue(), 50)); // 半透明颜色 g2d.rotate(radians, width / 2.0, height / 2.0); // 旋转文字 // 绘制文字