[Mapserver-users] can't display truetype fonts

kgrootendorst at baird.com kgrootendorst at baird.com
Fri Jul 9 14:36:00 EDT 2004


This is a multipart message in MIME format.
--=_alternative 00662EB485256ECC_=
Content-Type: text/plain; charset="US-ASCII"

Dylan,
Once I specified the absolute path to the font in the fonts.txt file, 
everything worked!
Thanks.

Kevin





Dylan Keon <keon at nacse.org> 
07/09/2004 02:25 PM

To
kgrootendorst at baird.com
cc
mapserver-users at lists.gis.umn.edu
Subject
[SPAM] - Re: [Mapserver-users] can't display truetype fonts - Email found 
in subject






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


--=_alternative 00662EB485256ECC_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Dylan,</font>
<br><font size=2 face="sans-serif">Once I specified the absolute path to
the font in the fonts.txt file, everything worked!</font>
<br><font size=2 face="sans-serif">Thanks.</font>
<br>
<br><font size=2 face="sans-serif">Kevin</font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Dylan Keon &lt;keon at nacse.org&gt;</b>
</font>
<p><font size=1 face="sans-serif">07/09/2004 02:25 PM</font>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">kgrootendorst at baird.com</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top><font size=1 face="sans-serif">mapserver-users at lists.gis.umn.edu</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">[SPAM] - Re: [Mapserver-users]
can't display truetype fonts - Email found in subject</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Double check that you have the correct FONTSET in
your mapfile. &nbsp;You <br>
might try giving FONTSET an absolute path, if you haven't already (e.g.,
<br>
on my Linux box, FONTSET /www/fonts/fonts.txt). &nbsp;I've found that I
also <br>
need to use absolute paths within my fonts.txt file (e.g., arial <br>
/www/fonts/TrueType/arial.ttf).<br>
<br>
--Dylan<br>
<br>
<br>
kgrootendorst at baird.com wrote:<br>
&gt; <br>
&gt; I'm having trouble with using true type fonts in my mapserver <br>
&gt; application. &nbsp;Basically, if I specify a label as truetype, I
receive the <br>
&gt; following message: &nbsp; &quot;msGetLabelSize(): TrueType Font error.
Could not <br>
&gt; find/open font .&quot;<br>
&gt; If I specify a label as bitmap, it displays correctly.<br>
&gt; My paths are correct and no problems were noticed during installation.<br>
&gt; I'm not sure why this is happening - should I have some type of <br>
&gt; 'truetype.dll' somewhere?<br>
&gt; <br>
&gt; I'm running the following:<br>
&gt; Windows 2000<br>
&gt; Mapserver 4.2<br>
&gt; php mapscript 4.3.4<br>
&gt; Apache 2.0<br>
&gt; <br>
&gt; *MapScript*<br>
&gt; *MapServer Version * &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG
<br>
&gt; OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ <br>
&gt; SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT <br>
&gt; SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR <br>
&gt; INPUT=GDAL INPUT=SHAPEFILE<br>
&gt; *PHP MapScript Version * &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;($Revision: 1.194.2.3 $ $Date: 2004/05/13
<br>
&gt; 21:37:44 $)<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; Any help would be greatly appreciated. &nbsp;Thanks.<br>
&gt; <br>
&gt; Kevin<br>
</tt></font>
<br>
--=_alternative 00662EB485256ECC_=--



More information about the mapserver-users mailing list