You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by sp...@web.de on 2014/05/30 20:22:18 UTC
Arial @ PDF-FOP
Hello :)
I have been trying for hours to integrate Arial in FOP. However, no success.
My Sitemap:
<map:serialize logger="sitemap.serializer.fo2pdf"
mime-type="application/pdf" type="fo2pdf"
src="org.apache.cocoon.serialization.FOPSerializer">
<user-config>file:///C:/fop-fonts/font-config.xml </user-config>
</map: serialize>
And my font-config:
<configuration>
<fonts>
<font metrics-file ="file:///C:/fop-fonts/arial.xml"
kerning = "yes" embed-file = "file:///C :/fop-fonts/arial.ttf">
<font-triplet name="Arial" style="normal" weight="normal"/>
<font-triplet name="ArialMT" style="normal" weight="normal"/>
</ font>
</ fonts>
</ configuration>
If there is a syntax error?
Re: Arial @ PDF-FOP
Posted by David Crossley <cr...@apache.org>.
spintus-mailing@web.de wrote:
> Hello :)
>
> I have been trying for hours to integrate Arial in FOP. However, no success.
>
>
>
>
> My Sitemap:
>
> <map:serialize logger="sitemap.serializer.fo2pdf"
> mime-type="application/pdf" type="fo2pdf"
> src="org.apache.cocoon.serialization.FOPSerializer">
>
> <user-config>file:///C:/fop-fonts/font-config.xml </user-config>
>
> </map: serialize>
That sitemap does not seem to be correct. First define the serializer
in a "map:serializers ... map:serializer" and that is where the
configuration file is declared. Then later at various locations
in your sitemaps, use that serializer via a "map:serialize".
> And my font-config:
>
> <configuration>
>
> <fonts>
>
> <font metrics-file ="file:///C:/fop-fonts/arial.xml"
>
> kerning = "yes" embed-file = "file:///C :/fop-fonts/arial.ttf">
>
> <font-triplet name="Arial" style="normal" weight="normal"/>
>
> <font-triplet name="ArialMT" style="normal" weight="normal"/>
>
> </ font>
>
> </ fonts>
>
> </ configuration>
>
>
>
> If there is a syntax error?
Perhaps that is an old style of configuration.
I only know how to use the configuratian via Apache Forrest,
which uses Cocoon-2.1 and hence currently FOP-1.0:
http://forrest.apache.org/docs/plugins/org.apache.forrest.plugin.output.pdf/
should provide some hints that might work for you in Cocoon proper.
Our docs point to FOP for more info:
http://xmlgraphics.apache.org/fop/1.0/configuration.html
-David
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org