xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From FJMan <dark-rei...@gmx.net>
Subject Custom fonts in Apache FOP (used with Saxon in Eclipse)
Date Tue, 26 Nov 2013 09:35:50 GMT

I tried scubscribing to the mailing list a couple of times now but every
time I get a mailer daemon. So i hope this even gets posted.

I downloaded Apache FOP 1.1 and Saxon9he and included Saxon as XSLT
processor into FOP (instead of Xalan) and then built it with ant. I then
included the fop.jar (and other necessary jars) into Eclipse to use FOP as
fo-processor in my Java-file. The problem now is that I need to use custom
fonts (Arial, Courier New). I have tried getting FOP to use custom fonts but
so far, without luck.

My fop.xonf looks like this:

    <renderer mime="application/pdf">

        <font-triplet name="Arial" style="normal" weight="normal"/>
        <font-triplet name="Arial,Italic" style="italic" weight="normal"/>
        <font-triplet name="Courier New" style="normal" weight="normal"/>


I tried to transform via the command line with the -c fop.xonf as a
Neither the autodetect nor telling fop the location of the fonts works. It
just uses Helvetica and other default fonts. And what is more, I cannot use
the fop.xonf file as a paramater in the command line in my Java programme.

View this message in context: http://apache-fop.1065347.n5.nabble.com/Custom-fonts-in-Apache-FOP-used-with-Saxon-in-Eclipse-tp39692.html
Sent from the FOP - Users mailing list archive at Nabble.com.

To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message