[mapserver-users] International Fonts - OSM Data
thomas bonfort
thomas.bonfort at gmail.com
Thu Aug 10 00:28:18 PDT 2017
Dave,
The Noto font aims at resolving this issue: https://www.google.com/get/noto/
Aside from that mapserver supports language specific fonts. This needs
documenting aside from what can be found in the RFC
http://mapserver.org/development/rfc/ms-rfc-98.html (which has a typo, use
s/LABEL/FONT/)
FONT "arialuni,en:arial,ja:cjk,ar:arabic"
will use a specific font for a given language code. Collecting all the
fonts and mapping them to all the language codes for a worldwide osm db
will be a tiresome job...
cheers,
Thomas
On Wed, Aug 9, 2017 at 8:04 PM Dave Barter <dave at phased.co.uk> wrote:
> 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
>
> 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
>
> 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?
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170810/6dd90195/attachment.htm>
More information about the MapServer-users
mailing list