...
A tip from Brajesh Patel & James Mcgill Anchor
Using TTF fonts in FOP
You can use TTF fonts in fo.ftl files. You need to use file "framework/webapp/config/fop.xconf". This file contain following code that responsible for font family, change font family according to the requirement, exemple
Code Block |
---|
<font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf">
<font-triplet name="Arial" style="normal" weight="normal"/>
<font-triplet name="ArialMT" style="normal" weight="normal"/>
</font>
|
I found that I could put this:
Code Block |
---|
<fonts>
<auto-detect/>
</fonts>
|
And FOP now sees all the TTF's that the system knows.
A tip from Brajesh Patel & James Mcgill