The position where the ENCODING parameter
is processed is not good.
now,
calculate bounding rect -> encode to UTF8 -> draw
this patch,
encode to UTF8 -> calculate bounding rect -> draw
http://oi.nu/msbugzilla/mapgd.c.diff
----------------------------------------------------------
sample images are here.
(1) shapefile with Japanese label (original 4.6.1)
http://oi.nu/msbugzilla/LABEL_UL_ORG.png
(2) same shapefile. patch applied.
http://oi.nu/msbugzilla/LABEL_UL_PATCHED.png
Mapfile is...
------------------------------------
...
LABEL
TYPE TRUETYPE
ENCODING CP932
FONT "orggothic"
SIZE 15
POSITION UL
COLOR 0 0 152
BACKGROUNDCOLOR 255 0 255
END
...
------------------------------------
--
IIDA Tetsushi(hogeman)
Reporter: gis@oi.nu Date: 2005/09/02 - 06:34