生成证书时黑体·画不出来,改成宋体
This commit is contained in:
@@ -83,7 +83,7 @@ public class UserCertificateServiceImpl extends ServiceImpl<UserCertificateDao,
|
|||||||
alreadyWriteLine++;
|
alreadyWriteLine++;
|
||||||
desTotalWidth = oneWordWidth;
|
desTotalWidth = oneWordWidth;
|
||||||
}
|
}
|
||||||
g.setFont(new Font("黑体", Font.BOLD, 30));
|
g.setFont(new Font("宋体", Font.BOLD, 30));
|
||||||
g.drawString(des[j].charAt(k)+"",180+desTotalWidth-oneWordWidth,820+alreadyWriteLine*(dess.getHeight()+10));
|
g.drawString(des[j].charAt(k)+"",180+desTotalWidth-oneWordWidth,820+alreadyWriteLine*(dess.getHeight()+10));
|
||||||
}
|
}
|
||||||
for (int k=0;k<str[j].length(); k++){
|
for (int k=0;k<str[j].length(); k++){
|
||||||
|
|||||||
Reference in New Issue
Block a user