[mapserver-users] Problem making mapserv on Linux with fribidi
Jackey Cheung
cheung.jackey at gmail.com
Mon Nov 17 23:57:36 PST 2008
Greetings!
We've tried to build MapServer on our Linux test server, and it goes fine
with no error reported. However, when we put it to test, all Arabic words
are broken but the character sequence is correctly ordered from right to
left (attached jpg).
We've tried to download the latest version from MapServer's and FriBidi's
official site and done it again, still no success.
The box is a CentOS 5.1, and here's the command line we've used:
./configure \
--with-jpeg \
--with-png \
--with-freetype \
--with-proj \
--with-geos \
--with-ogr \
--with-gdal \
--with-curl \
--with-tiff \
--with-gd \
--with-libiconv \
--with-zlib \
--with-xpm \
--with-agg=/usr/local/agg \
--with-grass \
--with-httpd=/usr/local/apache/bin/httpd \
--with-php=/usr/local/php \
--with-postgis=/usr/local/pgsql/bin/pg_config \
--with-fribidi-config=/usr/local/lib/pk
and here's the mapfile:
MAP
SHAPEPATH "/map/map"
FONTSET "/map/fonts.list"
SYMBOLSET "/map/symbols.list"
UNITS DD
EXTENT -180 -90 180 90
OUTPUTFORMAT
NAME "AGGA"
DRIVER "AGG/PNG"
MIMETYPE "image/png"
IMAGEMODE RGBA
TRANSPARENT ON
EXTENSION "png"
FORMATOPTION "INTERLACE=OFF"
END
OUTPUTFORMAT
NAME PNG24
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGBA
EXTENSION "png"
TRANSPARENT ON
FORMATOPTION "INTERLACE=OFF"
END
IMAGETYPE AGGA
IMAGECOLOR 255 255 255
PROJECTION
"init=epsg:4326"
END
WEB
IMAGEPATH "/map/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
END
LAYER
NAME "12"
STATUS DEFAULT
TYPE POLYGON
TRANSFORM FALSE
FEATURE
POINTS 0 0 0 400 400 400 400 0 0 0 END
END
CLASS
STYLE
COLOR 220 220 220
END
END
END
LAYER
NAME "12"
STATUS DEFAULT
TYPE ANNOTATION
TRANSFORM FALSE
FEATURE
POINTS 350 350 END
TEXT "12 طريق شيخ عسى سلمان"
END
CLASS
LABEL
ANGLE AUTO
ENCODING "UTF-8"
COLOR 0 0 0
OUTLINECOLOR 255 255 255
TYPE TRUETYPE
FONT "arabic-trad"
SIZE 12
ANTIALIAS TRUE
POSITION AUTO
PARTIALS FALSE
END
END
END
LAYER
NAME "16"
STATUS DEFAULT
TYPE ANNOTATION
TRANSFORM FALSE
FEATURE
POINTS 250 250 END
TEXT "16 طريق شيخ عسى سلمان"
END
CLASS
LABEL
ANGLE AUTO
ENCODING "UTF-8"
COLOR 0 0 0
OUTLINECOLOR 255 255 255
TYPE TRUETYPE
FONT "arabic-trad"
SIZE 16
ANTIALIAS TRUE
POSITION AUTO
PARTIALS FALSE
END
END
END
LAYER
NAME "20"
STATUS DEFAULT
TYPE ANNOTATION
TRANSFORM FALSE
FEATURE
POINTS 150 150 END
TEXT "20 طريق شيخ عسى سلمان"
END
CLASS
LABEL
ANGLE AUTO
ENCODING "UTF-8"
COLOR 0 0 0
OUTLINECOLOR 255 255 255
TYPE TRUETYPE
FONT "arabic-trad"
SIZE 20
ANTIALIAS TRUE
POSITION AUTO
PARTIALS FALSE
END
END
END
LAYER
NAME "24"
STATUS DEFAULT
TYPE ANNOTATION
TRANSFORM FALSE
FEATURE
POINTS 50 50 END
TEXT "24 طريق شيخ عسى سلمان"
END
CLASS
LABEL
ANGLE AUTO
ENCODING "UTF-8"
COLOR 0 0 0
OUTLINECOLOR 255 255 255
TYPE TRUETYPE
FONT "arabic-trad"
SIZE 24
ANTIALIAS TRUE
POSITION AUTO
PARTIALS FALSE
END
END
END
END
Someone please shed me so light. Many thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081118/41bd8a0e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: text.jpg
Type: image/jpeg
Size: 5359 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081118/41bd8a0e/attachment.jpg>
More information about the MapServer-users
mailing list