On 09/22/2011 08:51 PM, Lars Bjørndal wrote:
I've now upgraded fop to version 1.0. I have the following source:
<http://lamasti.net/files/pub/progoppsett/manual/progoppsett-1.0.xml>
I use the following command to create the fo file:
'xsltproc --output t.fo --stringparam double.side 1\
--stringparam fop1.extensions 1 --stringparam paper.type A4\
/usr/share/sgml/docbook/xsl-stylesheets/fo/docbook.xsl
progoppsett-1.0.xml'
Then, I use fop to convert to pdf:
'fop t.fo t.pdf', and I get the following warning messages:
22.sep.2011 21:49:26 org.apache.fop.events.LoggingEventListener
processEvent
WARNING: Font "Symbol,normal,700" not found. Substituting with
"Symbol,normal,40
0".
Wrong list!
You need to ask on the fop list how to configure fonts.
Unlike Word, fop doesn't use system fonts?
You need to tell it all about the fonts you have available.
<renderers>
<renderer mime="application/pdf">
<filterList>
<!-- provides compression using zlib flate (default is on) -->
<value>flate</value>
</filterList>
<fonts>
<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>
<font metrics-url="arialb.xml" kerning="yes" embed-url="arialb.ttf">
<font-triplet name="Arial" style="normal" weight="bold"/>
<font-triplet name="ArialMT" style="normal" weight="bold"/>
</font>
</fonts>
</renderer>
<renderer mime="application/postscript">
<!-- etc. etc..... -->
see http://xmlgraphics.apache.org/fop/0.95/configuration.html#pdf-renderer
HTH
regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]