Jody Garnett ha scritto: > Hi Andrea: > > I ran into this problem when rescaling maps for printing; one of the > things I did (using the "resize" feature visitor as documented in the > user guide) was rescale the font sizes. In doing research for that I > seem to recall that font sizes were determined assuming a pixel was > 1/72 of an inch. I think I was able to look up something more specific > but it may of been using an SWT class called Display. > > - http://www.developer.com/java/other/article.php/626051 > - http://forums.sun.com/thread.jspa?threadID=5356290&tstart=0
The problem is "similar", but not the same: http://java.sun.com/javase/6/docs/api/java/awt/Font.html#getSize() There is a relationship between point and inches, but mind, the SLD spec says "pixels". So in order to get from point size to pixels one would also need to know the DPI of the device we're rendering on. And I guess your printing at 600dpi would make for minuscule labels if we kept on measuring them in pixels? Or maybe not, I cannot say I fully understood the Java forum thread. This one may be relevant as well: http://java.sun.com/products/java-media/2D/reference/faqs/index.html#Q_Why_does_eg_a_10_pt_font_in_Ja Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
