Opened 19 years ago

Last modified 17 years ago

#1453 new defect

i18n characters are unjustly located in a line.

Reported by: gis@… Owned by: sdlime
Priority: low Milestone:
Component: MapServer CGI Version: 4.6
Severity: minor Keywords:
Cc:

Description (last modified by hobu)

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)

Change History (1)

comment:1 by hobu, 17 years ago

Description: modified (diff)

Steve,

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

Howard

Note: See TracTickets for help on using tickets.