|
@@ -102,7 +102,7 @@ public class QRCodeUtils {
|
|
|
// 添加底部文字,使用合适的字体
|
|
|
graphics.setColor(Color.BLACK);
|
|
|
// 使用支持中文的字体
|
|
|
- Font font = new Font("Microsoft YaHei", Font.BOLD, 16);
|
|
|
+ Font font = new Font("Noto Sans CJK", Font.BOLD, 16);
|
|
|
graphics.setFont(font);
|
|
|
FontMetrics metrics = graphics.getFontMetrics(font);
|
|
|
int textWidth = metrics.stringWidth(text);
|