ArrayList<FontSourceBase> fontSources = new ArrayList<>(); String fontPath = new ApplicationHome().getDir().getPath() + File.separator + "template" + File.separator + "font"; FolderFontSource fontSource = new FolderFontSource(fontPath, true); FolderFontSource fontSource2 = new FolderFontSource("C:\\Windows\\Fonts", true); fontSources.add(fontSource); fontSources.add(fontSource2); FontSettings.getDefaultInstance().setFontsSources(fontSources.toArray(new FontSourceBase[fontSources.size()]));
aspose添加字体
最新推荐文章于 2024-07-31 14:26:41 发布