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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…