Opened 20 years ago

#708 new defect

Fonts directory must reside in a path that contains no directories with spaces

Reported by: deathsushi@… Owned by: sdlime
Priority: high Milestone:
Component: MapServer CGI Version: unspecified
Severity: normal Keywords:
Cc:

Description

We had installed Apache in to its default directory structure.  This led to
Apache residing in the following path:

C:\Apache Group\Apache2

I created a directory within the htdocs folder titled workshop, and put our
files there.  I also copied mapserv.exe to the ...\Apache2\cgi-bin

Our map file contained the line:

  FONTSET "fonts/fonts.lst"

And our fonts file contained the following:

arial			arial.ttf

No matter how I rearranged the location of these files within this main
directory structure, nor whether I specified absolute or relative paths, we
continually got this error:

msGetLabelSize(): TrueType Font error. Could not find/open font 

After much manipulation, we finally realized that the reason we were getting
this error was due to the space in the directory name "Apache Group".  By moving
our fonts directory to the root of the drive (C:\fonts), the problem stopped. 
We could reproduce the problem (and the same error message) by change the
directory name to "C:\f onts", and then updating all of the relevant paths
appropriately.

--Adam

Change History (0)

Note: See TracTickets for help on using tickets.