[Mapserver-users] TrueType fonts problem -- help needed

Murat Isik muratisik at megatek.com.tr
Mon Nov 10 04:27:20 EST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_00F4_01C3A77D.9AE056D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,
I am having a problem with TrueType fonts. This is the error I get:

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

And this is what I do to get this error:

I have these in my mapfile:

NAME ERENKOY
STATUS ON
SIZE 600 600
SHAPEPATH "data"
IMAGECOLOR 255 255 255
FONTSET font.list

and

LAYER
  NAME ERENKOY_ORNEKSOKAK_PL_polyline
  TYPE LINE
  GROUP sokaklar
  STATUS ON
  DATA ERENKOY_ORNEKSOKAK_PL_polyline
  LABELITEM "ADI"
  CLASS
    NAME "ADI"
    COLOR 161 02 110
    LABEL
      TYPE truetype
      FORCE true
      FONT arial
      COLOR 0 0 0
      BACKGROUNDCOLOR 250 250 250=20
      POSITION cc
      SIZE 8
    END
  END
END


This ERENKOY_ORNEKSOKAK_PL_polyline layer's dbf file includes two =
coloumns, ID and ADI (name). This is a street layer and I am trying to =
get the name of the streets written next to their lines.

font.list include:

arial                           arial.ttf
arial-bold                      arialbd.ttf
arial-italic                    ariali.ttf
arial-bold-italic               arialbi.ttf

I have all the related ttf files in the same directory as font.list =
text, mapfile and the html page calling these fonts. However I get the =
error. May it be that my mapserver is not truetype compiled? I must =
admit that I installed mapserver and mapscript through rpms so I dont =
know the trutype situation of my mapserver 3.6.  If I can get this =
labelling to work then I am going to use th same mapfile for a mapscript =
page.

Have a nice day.

Murat Isik




------=_NextPart_000_00F4_01C3A77D.9AE056D0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3700.6699" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I am having a problem with TrueType =
fonts. This is=20
the error I get:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>msGetLabelSize(): TrueType Font error. =
Could not=20
find/open font </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>And this is what I do to get this=20
error:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have these in my =
mapfile:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>NAME ERENKOY<BR>STATUS ON<BR>SIZE 600=20
600<BR>SHAPEPATH "data"<BR>IMAGECOLOR 255 255 255<BR>FONTSET=20
font.list</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>and</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR>&nbsp; NAME=20
ERENKOY_ORNEKSOKAK_PL_polyline<BR>&nbsp; TYPE LINE<BR>&nbsp; GROUP=20
sokaklar<BR>&nbsp; STATUS ON<BR>&nbsp; DATA=20
ERENKOY_ORNEKSOKAK_PL_polyline<BR>&nbsp; LABELITEM "ADI"<BR>&nbsp;=20
CLASS<BR>&nbsp;&nbsp;&nbsp; NAME "ADI"<BR>&nbsp;&nbsp;&nbsp; COLOR 161 =
02=20
110<BR>&nbsp;&nbsp;&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE=20
truetype<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FORCE=20
true<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FONT=20
arial<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0=20
0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BACKGROUNDCOLOR 250 250=20
250&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION=20
cc<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 8<BR>&nbsp;&nbsp;&nbsp; =
END<BR>&nbsp;=20
END<BR>END<BR></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This ERENKOY_ORNEKSOKAK_PL_polyline =
layer's dbf=20
file includes two coloumns, ID and ADI (name). This is a street layer =
and I am=20
trying to get the name of the streets written next to their =
lines.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>font.list include:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>arial&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;=20
arial.ttf<BR>arial-bold&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
arialbd.ttf<BR>arial-italic&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
ariali.ttf<BR>arial-bold-italic&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
arialbi.ttf</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have all the related ttf files in the =
same=20
directory as font.list text, mapfile and the html page calling these =
fonts.=20
However I get the error. May it be that my mapserver is not truetype =
compiled? I=20
must admit that I installed mapserver and mapscript through rpms so I =
dont know=20
the trutype situation of my mapserver 3.6.  If I can get this labelling =
to work=20
then I am going to use th same mapfile for a mapscript =
page.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Have a nice day.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Murat Isik</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><BR>&nbsp;</DIV></FONT></BODY></HTML>

------=_NextPart_000_00F4_01C3A77D.9AE056D0--




More information about the mapserver-users mailing list