cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Hoofe" <kont...@hoofe.de>
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.

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  kontakt@hoofe.de
> ________________________
> 


________________________

  Christian Hoofe
  Email  kontakt@hoofe.de
________________________


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


Mime
View raw message