You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by kyle koss <kk...@xperient.net> on 2002/08/08 19:25:02 UTC

font embedding problem

I have followed the instructions at
xml.apache.org/cocoon/userdocs/serializers/pdf-serializer.html, but I am
still having problems getting my fonts to show up in my pdf document.
 
Here is my config file:
                        <configuration>
<fonts>
                                                <font
metrics-file="/usr/local/resin/webapps/cocoon/fonts/erasm.xml"
kerning="yes" 
 
embed-file="/usr/local/resin/webapps/cocoon/fonts/ERASM.ttf">
                                                <font-triplet name="Eras
Medium" style="normal" weight="normal"/>
                                                </font>
</fonts>
</configuration>
Her is the entry from my sitemap:
                        <map:serializers default="html">
                                    <map:serializer name="fo2pdf"
 
src="org.apache.cocoon.serialization.FOPSerializer"
                                            mime-type="application/pdf"
 
logger="sitemap.serializer.fo2pdf">
                                                <user-config
src="/usr/local/resin/webapps/cocoon/fonts/config.xml"/>
                                    </map:serializer>
                        </map:serializers>
 
I have checked the log files for the fop serializer entries, and it says
it is using the config file. There are also no errors saying it did not
find the font. But when the pdf is displayed, it has the default font.
 
Please help.
 
Kyle