[JAVA2D] Font kerning/spacing issues ?

2007-12-14 Thread Michele Puccini
Hello all at Java2D, please take a look at this picture: www.classx.it/public/font2dtest.jpg the first LATIN text is rendered with Java2d (1.5, 1.6, winxp) the second is rendered with CorelDraw (but I get the same result with any other gfx program). You can notice an abnormal spacing between

Re: [JAVA2D] Font kerning/spacing issues ?

2007-12-14 Thread Phil Race
Michele Puccini wrote: Phil, David, many thanks for your help. Phil, you say thay the KERNING hint is not there by default because: 1) changes the overall text length I mean that you obviously can't expect text to be the same length with this option on, and so you need to make sure any

Re: [JAVA2D] Font kerning/spacing issues ?

2007-12-14 Thread David Eisner
On 12/14/2007 12:50 PM, Phil Race wrote: Where's the problem with java2d font rendering ? [...] The way to get kerning in jdk6 is to say you want it by adding the appropriate attribute to the font : http://java.sun.com/javase/6/docs/api/java/awt/font/TextAttribute.html#KERNING Also see:

Re: [JAVA2D] Font kerning/spacing issues ?

2007-12-14 Thread Phil Race
Where's the problem with java2d font rendering ? Nothing's wrong. CorelDraw is a word-processor and is applying kerning. Not sure what you mean by any other gfx program. If you use windows notepad I see the same there in Font2DTest, which is what I would expect since windows GDI provides no

Re: [JAVA2D] Font kerning/spacing issues ?

2007-12-14 Thread Michele Puccini
Phil, David, many thanks for your help. Phil, you say thay the KERNING hint is not there by default because: 1) changes the overall text length 2) requires extra processing steps at rendering time. Do you mean that I may also encounter performance or compatibility issues ? Mik