From a7b830cd1d0266899b76edfa10ec031aae8a0262 Mon Sep 17 00:00:00 2001 From: erdanergou Date: Thu, 23 Feb 2023 15:37:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E5=90=88=E5=85=A5=E5=BA=93=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dreamchaser/depository_manage/utils/CreateQrCodeUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/dreamchaser/depository_manage/utils/CreateQrCodeUtil.java b/src/main/java/com/dreamchaser/depository_manage/utils/CreateQrCodeUtil.java index a155a1f8..a213718d 100644 --- a/src/main/java/com/dreamchaser/depository_manage/utils/CreateQrCodeUtil.java +++ b/src/main/java/com/dreamchaser/depository_manage/utils/CreateQrCodeUtil.java @@ -169,7 +169,7 @@ public class CreateQrCodeUtil { Color color = new Color(0, 0, 0); g2d.setColor(color); // 字体、字型、字号 - g2d.setFont(new Font("Arial Unicode MS", Font.PLAIN, 16)); + g2d.setFont(new Font("Droid Sans", Font.PLAIN, 16)); //文字长度 int strWidth = g2d.getFontMetrics().stringWidth(code); //总长度减去文字长度的一半 (居中显示)