|
|
@@ -156,13 +156,13 @@ public class ParticipantService {
|
|
|
g.setColor(new Color(48, 52, 82)); //根据图片的背景设置水印颜色
|
|
|
// 编号
|
|
|
String programmeId = participant.getProgrammeId().toString();
|
|
|
- Font fontId = new Font("黑体", Font.PLAIN, 35);
|
|
|
+ Font fontId = new Font("WenQuanYi Micro Hei Mono", Font.PLAIN, 35);
|
|
|
g.setFont(fontId);
|
|
|
g.drawString(programmeId, 2000, 544);
|
|
|
|
|
|
|
|
|
// 姓名
|
|
|
- Font font = new Font("黑体", Font.BOLD, 60);
|
|
|
+ Font font = new Font("WenQuanYi Micro Hei Mono", Font.BOLD, 60);
|
|
|
String name = participant.getName();
|
|
|
g.setFont(font); //设置字体
|
|
|
//设置水印的坐标
|
|
|
@@ -173,7 +173,7 @@ public class ParticipantService {
|
|
|
if (programmeName.length() > 8) {
|
|
|
String body1 = programmeName.substring(0, 8);
|
|
|
String body2 = programmeName.substring(8);
|
|
|
- Font title = new Font("黑体", Font.PLAIN, 40);
|
|
|
+ Font title = new Font("WenQuanYi Micro Hei Mono", Font.PLAIN, 40);
|
|
|
g.setFont(title);
|
|
|
g.drawString(body1, 1200, 795);
|
|
|
g.drawString(body2, 1200, 835);
|