Mapserver Error: msLoadFontset(): Unable to access file. Error opening fontset ./fonts/fonts.txt

I have made a map from QGIS by using RT Mapserver Exporter plugin, and I want to browse it to MapServer, just like this: https://trac.osgeo.org/openlayers/wiki/MappingYourData#no1 and the tutorial on the youtube: https://www.youtube.com/watch?v=WJt0rAyD2xU

However, when I browse it to Mapserver, there is always a error:

msLoadFontset(): Unable to access file. Error opening fontset ./fonts/fonts.txt.

Someone said "This means that that the map file is requesting for fonts or symbol definition files but that Mapserver cannot find those." But where I can download the font file and how I can put it into mapserver?

Replay

It seems there is a reference in the .map file to a font file, as below :

MAP
  NAME        "mapserver_wms_server"
  IMAGETYPE   JPEG
  FONTSET     "../fonts/fonts.txt"
  UNITS       METERS

Either comment that reference or if you want to use specific fonts, then create a text file with reference to those fonts you want to use, check below link : http://mapserver.org/mapfile/fontset.html

Sample for content of font.txt file:

Arial Arial.ttf
sans Vera.ttf

And copy the fonts files you are using in your .map file from C:\Windows\Fonts to fonts folder .

Category: mapserver Time: 2016-07-29 Views: 0
Tags: mapserver

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.287 (s). 12 q(s)