Hi Jonas.

Jonas Fleer:
> i have a problem with kerning in this document[1]. Squiggle and the  
> Transcoder example given on  
> http://xmlgraphics.apache.org/batik/using/transcoder.html#createImage  
> both create an image whose text doesn't have any kerning. But when i  
> preview the SVG with Firefox3 for example, there is kerning (see image  
> links [2-4] given below).
>
> Any hints why Batik doesn't render with kerning?
> My system: Mac OSX 10.5, Java 1.5, Batik 1.7

My understanding is that support for kerning was introduced only in
Java 6.  If you use an AWT font (like you do in your document), then you
won’t get any kerning, regardless of what version of Java you’re running
on, since Batik doesn’t try to use the Java 6 kerning support.

If you use an SVG font with <hkern> elements then you will get kerning,
since the spacing adjustment is done by code within Batik.  You can
convert the font you are using, Times, to an SVG font with the ttf2svg
utility included in the distribution.  Using that will get you kerned
glyphs.

I will see if the Java 6 kerning functionality is easily enabled for AWT
fonts.

-- 
Cameron McCormack ≝ http://mcc.id.au/

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

Reply via email to