소스 검색

// test

release_toaliyun_real
xhxu 3 년 전
부모
커밋
744d17a7b8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      mallinkBApi/src/main/java/com/iformall/utils/ImgYwsqhUtil.java

+ 2
- 2
mallinkBApi/src/main/java/com/iformall/utils/ImgYwsqhUtil.java 파일 보기

@@ -28,7 +28,7 @@ public class ImgYwsqhUtil {
private static final String imgTempPath = "imgTemp/wxjjywsqh.jpg";

//字体路径
private static final String fontPath = "opt/HWLS.TTF";
private static final String fontPath = "opt/simhei.ttf";

/**
* 生成图片证书
@@ -52,7 +52,7 @@ public class ImgYwsqhUtil {
// backImgUrl.close();
Graphics g = backImg.getGraphics();

Font font = Font.createFont(Font.TRUETYPE_FONT, ResourceUtils.getFile("classpath:"+fontPath));
Font font = Font.createFont(Font.TRUETYPE_FONT, new ClassPathResource(fontPath).getInputStream());
Font fTxtBottom = font.deriveFont(Font.PLAIN, 37);
// Font fTxtBottom = new Font("黑体", Font.PLAIN, 37);
Color myColorTxtBottom = Color.BLACK;


불러오는 중...
취소
저장