|
|
|
@@ -28,7 +28,7 @@ public class ImgYwsqhUtil { |
|
|
|
private static final String imgTempPath = "imgTemp/wxjjywsqh.jpg"; |
|
|
|
|
|
|
|
//字体路径 |
|
|
|
private static final String fontPath = "imgTemp/simhei.ttf"; |
|
|
|
private static final String fontPath = "opt/HWLS.TTF"; |
|
|
|
|
|
|
|
/** |
|
|
|
* 生成图片证书 |
|
|
|
@@ -53,7 +53,7 @@ public class ImgYwsqhUtil { |
|
|
|
Graphics g = backImg.getGraphics(); |
|
|
|
|
|
|
|
Font font = Font.createFont(Font.TRUETYPE_FONT, ResourceUtils.getFile("classpath:"+fontPath)); |
|
|
|
Font fTxtBottom = font.deriveFont(Font.PLAIN, 35); |
|
|
|
Font fTxtBottom = font.deriveFont(Font.PLAIN, 37); |
|
|
|
// Font fTxtBottom = new Font("黑体", Font.PLAIN, 37); |
|
|
|
Color myColorTxtBottom = Color.BLACK; |
|
|
|
|
|
|
|
|