|
@@ -940,6 +940,7 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
private String drawPicErZao(CertificatePhotoVo entity){
|
|
|
Font font = new Font("微软雅黑", Font.PLAIN, 31);// 添加字体的属性设置 微软雅黑
|
|
|
Font font2 = new Font("微软雅黑", Font.BOLD, 38);
|
|
|
+ Font font3 = new Font("微软雅黑", Font.PLAIN, 28);
|
|
|
String imgName = null;
|
|
|
try {
|
|
|
// 加载本地图片
|
|
@@ -967,7 +968,9 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
if("必修".equals(entity.getMajor())){
|
|
|
g.drawString(entity.getMajor(), 768, 718);
|
|
|
}else{
|
|
|
- g.drawString("选修("+entity.getMajor()+")", 705, 718);
|
|
|
+ g.setFont(font3);
|
|
|
+ g.drawString("选修("+entity.getMajor()+")", 700, 718);
|
|
|
+ g.setFont(font2);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1035,6 +1038,7 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
private String drawPicErJian(CertificatePhotoVo entity){
|
|
|
Font font = new Font("微软雅黑", Font.PLAIN, 31);// 添加字体的属性设置 微软雅黑
|
|
|
Font font2 = new Font("微软雅黑", Font.BOLD, 38);
|
|
|
+ Font font3 = new Font("微软雅黑", Font.PLAIN, 28);
|
|
|
String imgName = null;
|
|
|
try {
|
|
|
// 加载本地图片
|
|
@@ -1062,7 +1066,10 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
if("必修".equals(entity.getMajor())){
|
|
|
g.drawString(entity.getMajor(), 768, 718);
|
|
|
}else{
|
|
|
- g.drawString("选修("+entity.getMajor()+")", 705, 718);
|
|
|
+ g.setFont(font3);
|
|
|
+ g.drawString("选修("+entity.getMajor()+")", 700, 718);
|
|
|
+ g.setFont(font2);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|