Here's a minimal config file demonstrating relative fonts. You will
simply need to adjust the font-base setting (glb12.ttf is a font that's
found in the FOP source distribution).
test.xconf:
<?xml version="1.0"?>
<fop version="1.0">
<font-base>C:\Dev\FOP\main\trunk-clean\test\resources\fonts</font-base>
<renderers>
<renderer mime="application/pdf">
<fonts>
<font embed-url="glb12.ttf">
<font-triplet name="Gladiator" style="normal" weight="normal"/>
<font-triplet name="Gladiator" style="normal" weight="bold"/>
</font>
</fonts>
</renderer>
</renderers>
</fop>
A minimal FO file (relfont.fo):
<?xml version="1.0" ?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="first" page-height="29.7cm"
page-width="21cm"
margin="2cm">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="first">
<fo:flow flow-name="xsl-region-body">
<fo:block font-family="Gladiator" font-size="14pt">The quick brown fox
jumps over the lazy dog. (using Gladiator font)</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
Command-line: fop -c test.xconf -fo relfont.fo -pdf out.pdf
Tested with FOP 0.94. Works like a charm. Good luck!
On 14.01.2008 15:32:49 mpbjr30 wrote:
>
> Hi Everyone,
>
> I've just upgraded to 0.94 version of FOP. Is there any example of
> embedding fonts in the config file using relative paths? I've tried
> everything and I can't see to get it to work. Any help would be greatly
> appreciated .
>
> Thanks,
> Mike
> --
> View this message in context:
> http://www.nabble.com/Embedded-Fonts-Relative-Path-0.94-tp14802580p14802580.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]