Here the solution I found for the problem. Not elegant but it works.

Win98
=====
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 
variables.

All fonts needed are copied from C:\WINDOWS\Fonts  to 
C:\j2sdk1.4.1_01\jre\lib\fonts

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


Linux
====
In my tomcat start script

   # for svg-batik graphics
   JAVA_OPTS=-Djava.awt.headless=true
   export JAVA_OPTS
   JAVA_FONTS=/usr/local/j2sdk1.4.1/jre/lib/fonts
   export JAVA_FONTS

All fonts needed are copied from C:\WINDOWS\Fonts to 
/usr/local/j2sdk1.4.1/jre/lib/fonts

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  [EMAIL PROTECTED]
> ________________________
> 


________________________

  Christian Hoofe
  Email  [EMAIL PROTECTED]
________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to