Andrea,

Many thanks for confirming my observations. Your explanation of the inner 
workings certainly indicates it is font-specific. If I understand it correctly 
in case of the TTFMarkFactory, the first scaling transformation (so the largest 
side of the bbox becomes size 1) introduces the seemingly random adjustment 
factor?

Would changing the current behaviour introduce any unforeseen/unwanted effects? 
From a cartographic design point of view, it would be great to have 
these two symbolizers have the same, predictable output size.

Kind regards,

Edward


Date: Wed, 1 Aug 2012 19:26:51 +0200
Subject: Re: [Geoserver-users] Character size difference TextSymbolizer vs 
PointSymbolizer w/ TTFMarkFactory
From: [email protected]
To: [email protected]
CC: [email protected]

On Wed, Aug 1, 2012 at 2:49 PM, Edward Mac Gillavry <[email protected]> 
wrote:





Hi y'all,

Just noticed there is a size difference of the character "o" (i.e. Arial#111) 
rendered either with a TextSymbolizer or with a PointSymbolizer leveraging the 
TTFMarkFactory. Two snippets to show what I mean are pasted below. Also tried 
with the character "O" (i.e. Arial#79) which showed less difference, but still 
noticable! Could anyone explain the difference so I can sensibly change the 
<Size> of either the TextSymbolizer or PointSymbolizer? Or did I just stumble 
across a bug? Many thanks in advance!



The two code paths are completely different from each other and they are not 
meant to produce the same size
to start with, I wrote them and I would not be able to predict an adjustment 
factor myself, as it's most likely font

specific.

In one case we just turn the symbol into a vector representation, scale it so 
that the largest side of the containing
bbox is large 1, and then scale it up to the requested size, in the other case 
we just ask for a font whose point

size is the requested one

Cheers
Andrea 

-- 
==Our support, Your Success! Visit http://opensdi.geo-solutions.it for more 
information.
==
Ing. Andrea Aime @geowolfTechnical Lead
GeoSolutions S.A.S.Via Poggio alle Viti 118755054  Massarosa (LU)Italy
phone: +39 0584 962313fax:   +39 0584 962313mob:   +39  339 8844549
http://www.geo-solutions.ithttp://twitter.com/geosolutions_it

-------------------------------------------------------
                                          
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to