ccj 1 year ago
parent
commit
7b0d0bb111

+ 2 - 2
winsea-haixin-plugin-wangluohuoyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/util/PdfUtil.java

@@ -690,8 +690,8 @@ public class PdfUtil implements InitializingBean {
     private String getChineseFont() {
     private String getChineseFont() {
 
 
         //宋体(对应css中的 属性 font-family: SimSun; /*宋体*/)
         //宋体(对应css中的 属性 font-family: SimSun; /*宋体*/)
-//        String font1 = "templates" + File.separator + "msyh.ttc";
-        String font1 = "templates" + File.separator + "simsun.ttf";
+        String font1 = "templates" + File.separator + "msyh.ttc";
+//        String font1 = "templates" + File.separator + "simsun.ttf";
         //判断系统类型,加载字体文件
         //判断系统类型,加载字体文件
         Properties prop = System.getProperties();
         Properties prop = System.getProperties();
         String osName = prop.getProperty("os.name").toLowerCase();
         String osName = prop.getProperty("os.name").toLowerCase();