[mapserver-users] Font as a symbol?
Pushkar Pradhan
pushkar at ERC.MsState.Edu
Thu Jun 6 11:38:31 PDT 2002
Okay a very silly question to use truetype fonts, do I need to download
them separately from freetype.org?
I am on Unix, can't I use the system's fonts (if they are there)?
PHP compiled with:
./configure --prefix=/rstc/user1/erc/pushkar/php-4.0.6
--with-regex=system --enable-discard-path --enable-dbase
MS options:
# ./configure --without-tiff --without-jpeg
--with-gdal=../gdal-1.1.5/apps/gdal-config --with-php=../php-4.0.6
--without-ttf
Thanks,
> This bug has been fixed in the 3.7 source so it won't matter where you put the definition, but Rich is correct in the workaround for older versions.
>
> Steve
>
> Stephen Lime
> Data & Applications Manager
>
> Minnesota DNR
> 500 Lafayette Road
> St. Paul, MN 55155
> 651-297-2937
>
> >>> Richard Greenwood <Rich at GreenwoodMap.com> 06/05/02 03:24PM >>>
> I ran into this also. Putting the truetype symbol definition into the
> SYMBOLSET file, rather than defining it in the .map file fixed it for me.
>
> Rich
>
> At 02:05 PM 6/5/2002 -0400, you wrote:
> >We are having no luck trying to use a font for a symbol. The following is
> >the relevant code. Any suggestions would be helpful. We do not get any
> >errors, the symbols just don't show.
> >
> >
> ><symbol definition in mapfile>
> >SYMBOL
> > NAME "arial"
> > TYPE TRUETYPE
> > FONT arial
> > FILLED false
> > ANTIALIAS true
> > CHARACTER "a"
> >END
> >
> ><layer definition in mapfile>
> >LAYER
> > NAME stories
> > METADATA
> > "DESCRIPTION" "Local Stories"
> > "RESULT_FIELDS" "STORY_ID"
> > END
> > TYPE POINT
> > STATUS DEFAULT
> > TOLERANCE 10
> > TOLERANCEUNITS pixels
> > CLASS
> > NAME "Icon_id"
> > TEMPLATE void
> > SYMBOL 'arial'
> > SIZE 10
> > COLOR 0 0 0
> > END
> >END
> >
> ><fonset definition in mapfile>
> >FONTSET "c:/inetpub/wwwroot/digilib/mapserver/fonts/fonts.txt"
> >
> ><font mapping in font.txt>
> >arial
> >c:/zinetpub/wwwroot/digilib/mapserver/fonts/ARIAL.TTF
> >
> >
> >Regards,
> >Joost van Ulden
> >Data Integration Specialist
> >GSC-Pacific Division
> >101-605 Robson St.
> >Vancouver, BC V6B 5J3
> >604.666.7525
> >jvanulde at nrcan.gc.ca
>
>
> Richard W. Greenwood, PLS
> Greenwood Mapping, Inc.
> Rich at GreenwoodMap.com
> (307) 733-0203
> http://www.GreenwoodMap.com
>
>
-Pushkar S. Pradhan
More information about the MapServer-users
mailing list