[mapserver-users] International Fonts - OSM Data

Dave Barter dave at phased.co.uk
Wed Aug 9 11:03:22 PDT 2017


I’ve done a planet load of OSM and when I view countries in the database using PGADMIN I can see them correctly encoded as per the image below:-

http://imgbox.com/Z5SJ911X <http://imgbox.com/Z5SJ911X>

My Mapfile looks like this:-

CLASS
 EXPRESSION 'country'
 LABEL
  FONT sc
  TYPE TRUETYPE
  ENCODING "utf-8"
  SIZE 8
  COLOR 100 100 100
  OUTLINECOLOR -1 -1 -1
  OUTLINEWIDTH 2
  WRAP ' '
  MAXLENGTH 8
  ALIGN CENTER
  BUFFER 4
  PARTIALS FALSE
  POSITION cc
 END
END

Which renders some of the characters but not Ethiopia as shown by this image

http://imgbox.com/vnGmn7jT <http://imgbox.com/vnGmn7jT>

My database server is using UTF8 as the encoding. So Is the problem with my font?

sc maps to DejaVuSansCondensed.ttf

I am guessing some characters are missing or I need to use another font?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170809/65dd3045/attachment.html>


More information about the mapserver-users mailing list