FW: [mapserver-users] True Type font

Yeewen Sat yeewen at divestco.com
Fri Apr 27 09:59:55 PDT 2001


here's the solution that solved my true type font problem.


-----Original Message-----
From: Yeewen Sat [mailto:yeewen at divestco.com]
Sent: April 25, 2001 3:15 PM
To: Stephen Lime
Subject: RE: [mapserver-users] True Type font


that was it. i had the file somewhere else, and the wrong case too (lower
instead of upper case filename).
thanks!

-----Original Message-----
From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us]
Sent: April 25, 2001 2:14 PM
To: yeewen at divestco.com
Subject: Re: [mapserver-users] True Type font


Are the font files stored with the fontset? Have you tried putting fullpath
font names in the fontset?

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> "Yeewen Sat" <yeewen at divestco.com> 04/25/01 11:54AM >>>
I'm having problem using True Type fonts. I get this "msGetLabelSize():
TrueType Font error. Could not find/open font" error when I define LABEL to
use TYPE TRUETYPE. If I just use the default Bitmap, the labels show up no
problem.

Please help.

I'm running mapserver 4.3 on Linux.

Here's a cut out of the mapfile:
#
# Start of map file
#
NAME SDB
STATUS ON
SIZE 450 450
SYMBOLSET "../symbol/newsym.sym"
FONTSET "/web/sdbdev/packages/dv-mapping/fonts/fonts.list"
EXTENT 10478669.720365 6193732.674832 10521330.299635 6282545.399534
UNITS METERS
SHAPEPATH "../data/ywseis4"
IMAGECOLOR 255 255 255
#
# Start of web interface definition
#
WEB
  TEMPLATE "../www/java-template2.html"
  MINSCALE 25000
  MAXSCALE 14000000
  IMAGEPATH "../www/tmp/"
  IMAGEURL "/dv-mapping/tmp/"
  LOG "../www/tmp/logfile.log"
END
#
# Start of layer definitions
#
LAYER
  NAME dgridt
  TYPE ANNOTATION
  STATUS DEFAULT
  DATA dgridt
  CLASSITEM 'ID'
  MAXSCALE 750000
  LABELITEM "TEXT"
  LABELMAXSCALE 750000
  SYMBOLSCALE 200000
  CLASS
    EXPRESSION /./
    LABEL
      COLOR 0 0 0
      TYPE TRUETYPE
      FONT arial
      FORCE true
      SIZE 10
      ANGLE 405.000000
      POSITION lc
      MAXSIZE 24
      MINSIZE 4
    END
  END
END

The fonts.list file looks like this:
arial                           arial.ttf
arial-bold                      arialbd.ttf
arial-italic                    ariali.ttf
arial-bold-italic               arialbi.ttf
arial_black                     ariblk.ttf
comic_sans                      comic.ttf
comic_sans-bold                 comicbd.ttf
courier                         cour.ttf
courier-bold                    courbd.ttf
courier-italic                  couri.ttf
courier-bold-italic             courbi.ttf
georgia                         georgia.ttf
georgia-bold                    georgiab.ttf
georgia-italic                  georgiai.ttf
georgia-bold-italic             georgiaz.ttf
impact                          impact.ttf
monotype.com                    monotype.ttf
recreation_symbols              recreate.ttf
times                           times.ttf
times-bold                      timesbd.ttf
times-italic                    timesi.ttf
times-bold-italic               timesbi.ttf
trebuchet_ms                    trebuc.ttf
trebuchet_ms-bold               trebucbd.ttf
trebuchet_ms-italic             trebucit.ttf
trebuchet_ms-bold-italic        trebucbi.ttf
verdana                         verdana.ttf
verdana-bold                    verdanab.ttf
verdana-italic                  verdanai.ttf
verdana-bold-italic             verdanaz.ttf



Please help.
Thanks.






More information about the MapServer-users mailing list