[maplab-users] Starting Tutorial

Daniel Morissette
Wed, 29 Jan 2003 12:19:12 -0500
> After all, now I can open a mapfile in mapedit. But when I would like
> to execute the second step of the tutorial "Previewing a Mapfile" I
> get this error message in the new opened window :
> Warning: MapServer Error in msGetLabelSize(): Could not find/open font
> in /usr/local/httpd/htdocs/maplab/htdocs/mapedit/preview.php on line
> 437

This could happen if your MapScript was compiled with a GD that was
compiled with Freetype 2.x.  Freetype 2.x requires absolute paths for
fonts in the fonts.txt file.  A fix for this has been implemented in
MapServer 3.7 but with 3.6.x, it was preferrable to use freetype 1.3 if
you wanted relative font paths to work.

You'll have to either:

1- Edit the fonts.txt file that comes with the tutorial and set absolute
paths for all the fonts.  

2- Recompile GD using Freetype 1.3 and then recompile MapScript using
this new GD.  You would also have to make sure that you remove any
gd-devel RPM (or package) on your system before you do that to avoid
library conflicts.

 Daniel Morissette     
 DM Solutions Group    

This archive was generated by Pipermail.