cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Hoofe" <>
Subject Re: svg2jpeg output not equal on different machines
Date Thu, 20 Mar 2003 10:04:59 GMT
Here the solution I found for the problem. Not elegant but it works.

In autoexec.bat set tomcat options.

   set JAVA_FONTS=C:\j2sdk1.4.1_01\jre\lib\fonts
   set JAVA_OPTS=-Djava.awt.headless

May be  ..\tomcat\bin\catalina.bat is a better place for these environment 

All fonts needed are copied from C:\WINDOWS\Fonts  to 

e.g.	C:\j2sdk1.4.1_01\jre\lib\fonts\Arial.ttf

In my tomcat start script

   # for svg-batik graphics
   export JAVA_OPTS
   export JAVA_FONTS

All fonts needed are copied from C:\WINDOWS\Fonts to 

This works on my machines.

Thank's for Your Help
Christian Hoofe

> I'm using the svg2jpeg Serializer to generate menu entries.
> The svg text tag looks like this
> <text font-family="Arial Narrow" font-size="15" font-style="italic" font-
> weight="normal" fill="blue" x="14" y="15"><label/></text> 
> This is based on /svg/label.xml from the older documentation generation.
> My problem is that the generated jpeg are not same on different machines. The 
> generated font under Linux is greater than 14 points. I tried this with Cocoon 
> 2.0.4 under j2sdk1.3.1 and j2sdk1.4.1.
> Win98, Sun j2sdk1.3.1 and j2sdk1.4.1
> Suse 7.2, Blackdown j2sdk1.3.1 and j2sdk1.4.1
> Thank's for Your Help
> ________________________
>   Christian Hoofe
>   Email
> ________________________


  Christian Hoofe

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message