证书修改
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user