Weird behavior with TrueType icons under MS5+AGG

Gregor Mosheh gregor at HOSTGIS.COM
Tue Dec 4 18:18:19 PST 2007


Since the switch from MS4+GD to MS5+AGG every layer being rendered with 
a true type font for an icon is being displayed with the incorrect 
character.

In the TTF file we use (which is definitely Unicode), the character code 
for the nuclear symbol is: Á The character that is actually being 
displayed when the AGG renderer is used is the one that is mapped to the 
AMPERSAND... the deer head.

Shortening the character specification seems to read only the first 
character given. I've tried taking out the ampersand and it then 
displays the truck icon which is mapped to the POUND SIGN. If I take 
that out it displays the character that is mapped to the digit ONE.

The nuclear symbol is mapped to A ACUTE.  I've tried inserting that and 
it just renders the character mapped to the letter A.

This same behavior occurs with other TTF files, as well, showing the 
first character in the string, as opposed to the one we intend. Has the 
behavior of TTF symbols changed in MS5, and if so could someone point 
out the new syntax to me?

-- 
Gregor Mosheh / Greg Allensworth
System Administrator, HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
  only if you can restore." - AMANDA



More information about the MapServer-users mailing list