|
|
@@ -53,6 +53,10 @@ public class Word2Pdf {
|
|
|
fontSources.add(folderFontSource);
|
|
|
FontSourceBase[] updatedFontSources = (FontSourceBase[]) fontSources.toArray(new FontSourceBase [fontSources.size()]);
|
|
|
font.setFontsFolder(path, true);
|
|
|
+ font.setDefaultFontName("SimHei");
|
|
|
+ font.setDefaultFontName("NSimSun");
|
|
|
+ font.setDefaultFontName("STFangsong");
|
|
|
+ font.setDefaultFontName("STZhongsong");
|
|
|
font.setDefaultFontName("SimKai");
|
|
|
font.setFontsSources(updatedFontSources);
|
|
|
doc.setFontSettings(font);
|