证书修改

This commit is contained in:
wuchunlei
2024-09-19 15:00:56 +08:00
parent 46309d3000
commit 978082b73a

View File

@@ -163,7 +163,7 @@ public class UserCertificateServiceImpl extends ServiceImpl<UserCertificateDao,
g.setFont(new Font("宋体", Font.PLAIN, 30)); g.setFont(new Font("宋体", Font.PLAIN, 30));
g.drawString(str[j].charAt(k)+"",180+desTotalWidth-oneWordWidth,820+alreadyWriteLine*(dess.getHeight()+10)); g.drawString(str[j].charAt(k)+"",180+desTotalWidth-oneWordWidth,820+alreadyWriteLine*(dess.getHeight()+10));
} }
if (j<=des.length){ if (j<des.length){
for (int k=0;k<des[j].length(); k++){ for (int k=0;k<des[j].length(); k++){
int oneWordWidth = dess.charWidth(des[j].charAt(k));//获取单个字符的长度 int oneWordWidth = dess.charWidth(des[j].charAt(k));//获取单个字符的长度
desTotalWidth += oneWordWidth; desTotalWidth += oneWordWidth;