[Mapserver-users] can't display truetype fonts

Dylan Keon keon at nacse.org
Fri Jul 9 14:25:17 EDT 2004


Double check that you have the correct FONTSET in your mapfile.  You 
might try giving FONTSET an absolute path, if you haven't already (e.g., 
on my Linux box, FONTSET /www/fonts/fonts.txt).  I've found that I also 
need to use absolute paths within my fonts.txt file (e.g., arial 
/www/fonts/TrueType/arial.ttf).

--Dylan


kgrootendorst at baird.com wrote:
> 
> I'm having trouble with using true type fonts in my mapserver 
> application.  Basically, if I specify a label as truetype, I receive the 
> following message:   "msGetLabelSize(): TrueType Font error. Could not 
> find/open font ."
> If I specify a label as bitmap, it displays correctly.
> My paths are correct and no problems were noticed during installation.
> I'm not sure why this is happening - should I have some type of 
> 'truetype.dll' somewhere?
> 
> I'm running the following:
> Windows 2000
> Mapserver 4.2
> php mapscript 4.3.4
> Apache 2.0
> 
> *MapScript*
> *MapServer Version * 	MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG 
> OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ 
> SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR 
> INPUT=GDAL INPUT=SHAPEFILE
> *PHP MapScript Version * 	($Revision: 1.194.2.3 $ $Date: 2004/05/13 
> 21:37:44 $)
> 
> 
> 
> Any help would be greatly appreciated.  Thanks.
> 
> Kevin



More information about the mapserver-users mailing list