[Mapserver-users] Problems with version 4 and fonts

Giorgio Plazzotta plazzotta at tiscalinet.it
Wed May 19 09:07:56 EDT 2004


Hi all,
in my test environment, using a the precompiled Windows version 3.6 of
Mapserver the mapfile that i include in the bottom of this message was
working. When i installed the new precompiled version 4.0.1 (and also 4.0.2)
the same mapfile didn't work anymore giving the following error messages:

Warning: [MapServer Error]: msGetLabelSize(): Could not find/open font in
c:\programmi\apache group\apache\htdocs\test\mapObj.php on line 185
and
Warning: [MapServer Error]: msAddImageSymbol(): Error opening image file
c:\programmi\apache group\apache\htdocs\test/scalebar. in
c:\programmi\apache group\apache\htdocs\test\mapObj.php on line 185
If i eliminate (in the mapfile) the layer that refers to a truetype font the
error messages are not shown anymore and this make me think that the problem
is related to the use of the truetype fonts. it's strange that everything
was working in the 3.6 release and not anymore with the newer versions.  I
cannot compile a new windows environment by myself so to test if changiong
the release of one of the mapserver additional components could solve the
problem. i also tried to upgrade the versions of php (4.3.3 & 4.3.6).
maybe some of you have an idea of this problems. thanx in advance
Giorgio Plazzotta
Sarasr Ricerche
Assemini (CA) - Italy
the mapfile
NAME DEMO
STATUS ON
#SIZE 600 350
SYMBOLSET ./etc/symbols.sym
EXTENT -2200000 -712631 3072800 3840000
UNITS METERS
SHAPEPATH "./data"
IMAGECOLOR 255 255 255
FONTSET ./etc/fonts.txt
........
........
.....
LAYER
GROUP "tore"
NAME popplace
METADATA
"DESCRIPTION" "Cities"
"RESULT_FIELDS" "NAME"
END
TYPE POINT
STATUS ON
DATA popplace
LabelItem "Name"
#MINSCALE 12500000
#MAXSCALE 50000000
CLASSITEM "Capital"
CLASS
EXPRESSION "1"
TEMPLATE "ttt_query.html"
SYMBOL 2
SIZE 8
NAME "Cities"
LABEL
COLOR 255 0 0
FONT fritqat-italic
TYPE truetype
SIZE 8
POSITION AUTO
PARTIALS FALSE
OUTLINECOLOR 255 255 255
END
COLOR 0 0 0
END
......
......

it continues but the problem is in the FONT reference in this layer





More information about the mapserver-users mailing list