[mapserver-users] truetype weirdness

thorsten fischer thfischer at mapmedia.de
Mon Jan 7 10:38:58 EST 2002


Robert, Daniel,
(and: list :) ),

I have recompiled gd with some shared library magic, and also recompiled
mapserver with that, using my latest cvs checkout. The result is still
the same: error. See below for the layer from the mapfile that causes
the error, the error message itself, the mapserver version string and
the output of ldd (btw I believe that libcrypto and libresolv are part
of glibc; otherwise I would scratch my head even more than I do at the
moment). There is no other libgd installed on the system.

Reverting to freetype-1.3 does not fix the problem either btw. I tried
to track down the source of the error by removing parameters of the
label section - to no avail. Bitmap fonts still work fine.


<ServiceException>
msGetLabelSize(): TrueType Font error. Could not find/open font
</ServiceException>

grobi:/usr/local/GIS/apache/cgi-bin # ./mswms -v
MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG
INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE

grobi:/usr/local/GIS/apache/cgi-bin # ldd mswms
	libgd.so.1 => /usr/local/GIS/lib/libgd.so.1 (0x40028000)
	libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40059000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40078000)
	libpng.so.2 => /usr/lib/libpng.so.2 (0x400ac000)
	libz.so.1 => /lib/libz.so.1 (0x400de000)
	libtiff.so.3 => /usr/lib/libtiff.so.3 (0x400ed000)
	libproj.so.0 => /usr/local/GIS/lib/libproj.so.0 (0x40130000)
	libgdal.1.1.so => /usr/local/GIS/lib/libgdal.1.1.so (0x4016f000)
	libpq.so.2 => /usr/local/GIS/pgsql/lib/libpq.so.2 (0x404aa000)
	libm.so.6 => /lib/libm.so.6 (0x404bc000)
	libc.so.6 => /lib/libc.so.6 (0x404de000)
	libgeotiff.so => /usr/local/GIS/lib/libgeotiff.so (0x40604000)
	libdl.so.2 => /lib/libdl.so.2 (0x40628000)
	libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3
(0x4062c000)
	libcrypt.so.1 => /lib/libcrypt.so.1 (0x4067a000)
	libresolv.so.2 => /lib/libresolv.so.2 (0x406a7000)
	libnsl.so.1 => /lib/libnsl.so.1 (0x406b9000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


LAYER
   NAME "g_sie1_1099_pois_annotation"
   METADATA
    "wms_title" "Siedlungsgebiete (Punkte) Beschriftung"
   END
   PROJECTION
    "init=epsg:4318"
   END
   TYPE ANNOTATION
   STATUS on
   MAXSCALE 300000
   DATA "shapes/g_sie1_1099_pois"
   LABELITEM "GN"
   CLASSITEM "GN"
   CLASS
    EXPRESSION /./
    LABEL
      COLOR 0 0 0
      OUTLINECOLOR 255 255 255
      TYPE TRUETYPE
      FONT arial
      SIZE 10
      POSITION CR
      PARTIALS TRUE
      BUFFER 1
    END
   END
END




cheers,

thorsten

-- 

Thorsten Fischer        thfischer at mapmedia.de

---------------------------------------------------------
MapMedia - Kartographie und raumbezogene Informationssysteme
Am Borsigturm 42
13507 Berlin
Deutschland
http://www.mapmedia.de tel: +49 (0)30 43032102
---------------------------------------------------------




More information about the mapserver-users mailing list