|
|
@ -102,7 +102,7 @@ public class BarcodeUtils { |
|
|
|
Graphics2D g = outImage.createGraphics(); |
|
|
|
g.drawImage(image, 0, 0, imageW, imageH, null); |
|
|
|
g.setColor(QRCOLOR); |
|
|
|
// g.setFont(new Font("微软雅黑", Font.BOLD, FONTSIZE));
|
|
|
|
g.setFont(new Font("宋体", Font.BOLD, FONTSIZE)); |
|
|
|
g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); |
|
|
|
g.setBackground(Color.white); |
|
|
|
// 获取文字数量 按照字节展示
|
|
|
|