[mapserver-users] Failed to show Arabic labels with MapServer 5.2
Jackey Cheung
cheung.jackey at gmail.com
Mon Nov 17 23:01:27 PST 2008
I've located the problem, it seems that the TTF font (Arabic Transparent) is
not 100% unicode safe. And maybe I've messed something up, so that the font
Arial didn't produce the correct result. But now I can use Arial to produce
image.
However, there still seems to be a slight problem (well, I'm not sure
whether it is a proble, since I can't read Arabic). When the label has an
angle, the words are broken a bit. Although they are using the joined
character but there are tiny gaps between them.
On Mon, Nov 17, 2008 at 11:15 PM, Stephen Woodbridge <
woodbri at swoodbridge.com> wrote:
> Jackey,
>
> Try locating a different font. if the text is being rendered as glyphs and
> they look correct, but is missing the joining information, it is likely that
> the font you are using does not include the joining glyphs.
>
> If you are using a windows machine, try getting mapserver via the fonts.txt
> file to point to the arial.ttf in the fonts folder. And change you FONT
> "..." to select the windows arial font. This assumes that you can display
> arabic text correctly using the arial font from a windows application like
> excel.
>
> -Steve W.
>
> Jackey Cheung wrote:
>
>> Greetings!
>>
>>
>> We've build the MapServer 5.2 on a Linux server, with fribidi2 0.19.1, to
>> try show Arabic labels. But the words has been broken down to characters
>> in
>> the generated images (line.png). Then we've tried on a MS4W 2.3.0 server,
>> but the images (ms4w.png) are even worse.
>>
>> We are using PostGIS, and the database is using UTF8 (pgpr.png), while all
>> Arabic data can be shown correctly (pg.png) on my English Windows XP, and
>>
>> we've tried some more machines, or on IE, to make sure that Arabic text in
>> database are really UTF8.
>>
>> Here's the images: http://www3.mapasia.com/jackout/ara.png
>>
>>
>> The part of the map file is as follow, where the "arbic-trans" is a Arabic
>> TrueType font named "Arabic Transparent":
>> LABEL
>> ANGLE FOLLOW
>> PRIORITY [priority]
>> ENCODING "UTF-8"
>> COLOR 0 0 0
>> OUTLINECOLOR 255 255 255
>> TYPE TRUETYPE
>> FONT "arbic-trans"
>> SIZE 7
>> POSITION AUTO
>> PARTIALS FALSE
>> MINDISTANCE 500
>> BUFFER 1
>> MINFEATURESIZE 50
>> END
>>
>> Could anyone please help.
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081118/5a77d1c5/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: line.jpg
Type: image/jpeg
Size: 5171 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081118/5a77d1c5/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: angle.jpg
Type: image/jpeg
Size: 7199 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081118/5a77d1c5/attachment-0001.jpg>
More information about the MapServer-users
mailing list