[Mapserver-users] Error when using labels TYPE=truetype
Björn Platzen
bplatzen at sosnetz.de
Fri May 2 02:16:21 PDT 2003
Hi all,
I am using MapServer 3.6.5 with TTF-Support on a SuSE Linux 8.0-Box.
When using TYPE=truetype on labels I get the following error:
msGetLabelSize(): TrueType Font error. Could not find/open font
I have dfined the alias in my font.list and the ttf-file is available in
the same directory. chmod'ing the ttf-files to 755 did have no effect.
Here are some snippets:
<mapfile>
NAME wtal1
STATUS ON
SIZE 400 400
SYMBOLSET symbols/symbols.sym
FONTSET font/font.list
EXTENT 2579338.972431 5678689.425632 2584838.972431 5684196.944428
UNITS METERS
SHAPEPATH "dds_data"
IMAGECOLOR 250 250 250
#[...]
LAYER
NAME stadtteile
TYPE POLYGON
STATUS ON
MINSCALE 12000
DATA stadtteile
LABELITEM "Name"
CLASS
LABEL
TYPE truetype
FONT "arial"
SIZE 32
COLOR 0 0 0
END #LABEL
END #CLASS
END #LAYER
END # Map File
</mapfile>
<fontset>
arial arial.ttf
arial-bold arialbd.ttf
arial-italic ariali.ttf
arial-bold-italic arialbi.ttf
arial_black ariblk.ttf
</fontset>
<font-Dir>
drwxr-xr-x 2 platzen users 4096 Okt 24 2002 ./
drwxrwxr-x 13 platzen users 4096 Apr 7 17:16 ../
-rwxr-xr-x 1 platzen users 296712 Aug 18 2001 arial.ttf*
-rwxr-xr-x 1 platzen users 288496 Aug 18 2001 arialbd.ttf*
-rwxr-xr-x 1 platzen users 226748 Aug 18 2001 arialbi.ttf*
-rwxr-xr-x 1 platzen users 207808 Aug 18 2001 ariali.ttf*
-rwxr-xr-x 1 platzen users 117028 Aug 18 2001 ariblk.ttf*
-rwxr-xr-x 1 platzen users 215 Okt 24 2002 font.list*
</font-Dir>
Am I doing something wrong??
Thanks for any help
Bjoern
--
small office solutions
info at sosnetz.de - http://www.sosnetz.de
More information about the MapServer-users
mailing list