[mapserver-dev] Arabic encoding in Mapscript
Stephen Woodbridge
woodbri at swoodbridge.com
Sat Nov 27 10:33:48 EST 2010
I have gotten this to work using a Microsoft Arial font that is about
24MB in size. It is a utf8 font. I use Arabic data that is in utf8 and
use the ENCODING UTF8 in the label. You HAVE to use fribidi-0.19.x when
compiling mapserver.
The MS Arial font is not perfect it has some missing joining gliphs but
is for the most part pretty good. I have had some clients license other
third party fonts that are better but I don't keep track of them and
some clients have gotten a font editor and added the glyphs they needed.
-Steve W
On 11/27/2010 4:26 AM, mapsab wrote:
>
> Hi,
> I am using c#mapscript(utilmap)(MapServer version 4.8.4 ) with asp.net in
> our web application(www.welcometooman.com) .With English data it is working
> fine.But when I try to show some labels in arabic it shows some Arabic
> characters,but not in a joined way.We have created the layer using mapinfo
> with one filed contains arabic .All the layers are in .Tab format.The layer
> code is as follows
>
>
> LAYER
>
> NAME "Museums_c"
>
>
> TYPE POINT
> CONNECTIONTYPE OGR
>
> CONNECTION "Museums_c.TAB"
>
>
> STATUS ON
> # This enables use of colors and styles from the source file.
> #STYLEITEM "AUTO"
> # Define an empty class that will be filled at runtime from the color and
> # styles read on each shape in the source file.
> #CLASSITEM "TYPE"
>
> LABELITEM "Ar_Name"
>
> CLASS
> SIZE 10
> STYLE
> COLOR 255 0 0
> OUTLINECOLOR 0 0 0
> SYMBOL 'museum'
> END #STYLE
> #TEXT ([LABEL], [LABEL])
> LABEL
> ANGLE AUTO
> COLOR 100 100 255
> FONT arial
> TYPE TRUETYPE
> SIZE 10
> POSITION LC
> WRAP " "
> ENCODING "Windows-1256"
>
> END#LABEL
> END# CLASS
> END#LAYER
>
> I have tried UTF-8,and font like Tahoma,but same reuslt.Can anyone suggests
> any solution please.
>
More information about the mapserver-dev
mailing list