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