Re: [Geotools-devel] SLD and font size (pixel vs points)

2008-09-12 Thread Jody Garnett
Andrea Aime wrote: > Yet the java Font size is defined in points: > http://java.sun.com/javase/6/docs/api/java/awt/Font.html#getSize() > > Hmm... anybody knows a way to turn pixels into points? It seems > to be screen dependent... > Java documents a default DPI (72 I think?) to use when making t

[Geotools-devel] SLD and font size (pixel vs points)

2008-09-12 Thread Andrea Aime
Hi, looking into a difference in font rendering between MapServer and GeoServer I noticed that GeoTools SLDStyelFactory is using the size defined in the TextSymbolizer as is, and this is not what the specification mandates for. SLD 1.0, page 46, states: The "font-size" CssParameter element gives t