MapServer / MapServer-import

3 stars 2 forks source link

i18n characters are unjustly located in a line. #1453

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: gis@oi.nu Date: 2005/09/02 - 06:34

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)
tbonfort commented 12 years ago

Author: hobu Date: 2007/08/17 - 09:24 Steve,

Did the curved work in #1921 label positioning issues like this?

Howard