> I'm using Debian GNU/Linux testing (etch) fop 0.25-? (but downloaded
> 0.93). I can provide the sources if needed (i can't right now, not at
> home). I'm just starting out so if you can directly me to some nice
> tutorials on using xml + xsl-fo + how to get romanian language
> supported in pdf output :) it would be super.
>
> p.s. I'm a newbie so please be gentle.
>
Hi,
If you download the fop 0.95 you can find the fop/conf/fop.xonf
In the file add your font, giving example here.
<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>
get the yourfont.ttf file from your system font folder,
then use fop/ttc.bat to genereate yourfont.xml.
place both yourfont.ttf, yourfont.xml files in the fop base directory.
In your java program tell the fop.xconf file path with
fopFactory.setUserConfig(new File("C://../fop/conf/fop.xconf"));
hope this help,
sarath
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]