[Mapserver-users] TrueType fonts problem -- help needed
Murat Isik
muratisik at megatek.com.tr
Mon Nov 10 01:27:20 PST 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> </DIV>
<DIV><FONT face=3DArial size=3D2>msGetLabelSize(): TrueType Font error. =
Could not=20
find/open font </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>And this is what I do to get this=20
error:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I have these in my =
mapfile:</FONT></DIV>
<DIV> </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> </DIV>
<DIV><FONT face=3DArial size=3D2>and</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR> NAME=20
ERENKOY_ORNEKSOKAK_PL_polyline<BR> TYPE LINE<BR> GROUP=20
sokaklar<BR> STATUS ON<BR> DATA=20
ERENKOY_ORNEKSOKAK_PL_polyline<BR> LABELITEM "ADI"<BR> =20
CLASS<BR> NAME "ADI"<BR> COLOR 161 =
02=20
110<BR> LABEL<BR> TYPE=20
truetype<BR> FORCE=20
true<BR> FONT=20
arial<BR> COLOR 0 0=20
0<BR> BACKGROUNDCOLOR 250 250=20
250 <BR> POSITION=20
cc<BR> SIZE 8<BR> =
END<BR> =20
END<BR>END<BR></FONT></DIV>
<DIV> </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> </DIV>
<DIV><FONT face=3DArial size=3D2>font.list include:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>arial  =
; =
=20
arial.ttf<BR>arial-bold &n=
bsp; &nb=
sp;=20
arialbd.ttf<BR>arial-italic &nbs=
p; =20
ariali.ttf<BR>arial-bold-italic =
=20
arialbi.ttf</FONT></DIV>
<DIV> </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> </DIV>
<DIV><FONT face=3DArial size=3D2>Have a nice day.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Murat Isik</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><BR> </DIV></FONT></BODY></HTML>
------=_NextPart_000_00F4_01C3A77D.9AE056D0--
More information about the MapServer-users
mailing list