About mapserver 4.4.1 and Chinese problem

Mario H. Basa mhbasa at YAHOO.COM
Fri Mar 18 10:02:55 EST 2005


Hello,

I agree with Linagxu, it seems that you have forgotten
to create a fontset file. Here is what you should do:

1. create a file called fontset.lst in the same
directory as your map file.

2. add this to the fontset.lst (for fedora, check to
make sure that the path is correct)

bkai00mp /usr/share/fonts/zh_TW/TrueType/bkai00mp.ttf

3. add this to your map file:

FONTSET fontset.lst



Hope this works for you.

mario
yokohama, japan


--- "Tinmean K. H. Liu" <tinmean at YAHOO.COM.TW> wrote:
> Hi,
>      Thanks for your response.
>
>      The question is no solved.
>       I post  the question on your discussion board.
>
>      About my question is about the "Label",  I make
> a simple example
> here: http://140.113.223.74/hc_river/test.php
>
>      Comparing the different mapfiles, the first one
> with labelitem
> cannot be showed out.
>
>       Thank you, anyway.
>
> --Tinmean K. H. Liu
>
> > Hi,
> >      Have you set the fontset variable and copy
> the font to the right place
> >if you are sured your code right?
> >      And if you can read chinese,welcome to
> >http://www.cngis.org/bbs/forumdisplay.php?f=83
> discuss the related topic.
> >
> > Liangxu Wang
> >
> >
> >
> >>Hi,
> >>
> >>   I installed mapserver 4.4.1 by using apt under
> Fedora Core 2.
> >>   From the "what's new" and mapfile reference, I
> use
> >>"encoding" in my mapfile.
> >>   It looks like:
> >>
> >>LAYER
> >>  NAME Hchc_river
> >>  TYPE LINE
> >>  STATUS ON
> >>  DATA Hchc_river
> >>  LabelItem "NAME"
> >>  #CLASSITEM "NO"
> >>  CLASS
> >>    NAME "Hchc_river"
> >>    COLOR 0 0 255
> >>    LABEL
> >>      COLOR 0 0 0
> >>      TYPE TRUETYPE
> >>      FONT moe_kai
> >>      SIZE 8
> >>      POSITION AUTO
> >>      PARTIALS FALSE
> >>      OUTLINECOLOR 255 255 255
> >>      ENCODING BIG5
> >>    END
> >>  END
> >>  TOLERANCE 5
> >>END
> >>
> >>    And I have an example in my site:
> >>http://140.113.223.74/hc_river/hello.phtml
> >>
> >>   The right code(BIG5), the right font, but
> failed.
> >>   Thanks for any response.
> >>
> >>Tinmean K. H. Liu
> >>
> >>
> >>
> >>
> >
> >
> >
> >
> >
> >
>



__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/



More information about the mapserver-users mailing list