I have a TTF font in fonts
directory in the JAR with my application.
myapp.jar /
fop /
config.xml
font.ttf
I create my FOP this way:
FopFactory fopFactory = FopFactory.newInstance();
fopFactory.setStrictValidation(false);
fopFactory.setUserConfig(getClasspathFile("/fop/config.xml"));
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
...
How do I configure config.xml
to embeddd font.ttf
in the PDF file I am rendering?