4
我的應用程序在JAR的fonts
目錄中有一個TTF字體。從JAR加載FOP的字體
myapp.jar/
fop/
config.xml
font.ttf
創建我FOP是這樣的:
FopFactory fopFactory = FopFactory.newInstance();
fopFactory.setStrictValidation(false);
fopFactory.setUserConfig(getClasspathFile("/fop/config.xml"));
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
...
如何配置3210在PDF文件中我渲染embeddd font.ttf
?