[mapserver-users] fonts with ms-3.6

Timothy M. Thompson tim at GrizzlyLogic.com
Fri Jun 28 22:45:25 EDT 2002


Bertha,

Drop the ".TTF" at the end of your FONT reference in your MAP file.

ie:
       TYPE TRUETYPE
       ANTIALIAS true
       FONT Tunga
       SIZE 14

(Note: I don't use double quotes around the font alias, but I think it 
works both ways).

The word "Tunga" is all you need, since that is what you have listed it as 
in your "fonts.list" file.

Consider your fonts.list as a lookup table (or alias table) for fonts and 
refer to them by their alias name only.  Mapserver will load the fonts.list 
file to find the path/filename of the actual TTF file.

Best,
Tim


At 11:16 PM 6/28/2002 +0200, bertha amalia serrato de la cruz wrote:

>Hi
>
>i've treated use fonts on windows xp with ms-3.6 but mapserver doesn''t 
>recognize them
>
>i have a fonts.list in c:\fonts.list whit:
>
>Wingdings 2       c:\WINGDNG2.TTF
>Tunga                 c:\tunga.TTF
>
>in the map file i have defined
>
>FONTSET "C:\fonts.list"
>
>and ..
>
>LABEL
>       COLOR 0 0 0
>       SHADOWCOLOR 218 218 218
>       SHADOWSIZE 2 2
>       #TYPE BITMAP
>       TYPE TRUETYPE
>       ANTIALIAS true
>       FONT "tunga.TTF"
>       SIZE 14
>       #SIZE MEDIUM
>       POSITION CC
>       #PARTIALS FALSE
>       #BUFFER 2
>     END
>
>the error is:
>
>msGetLabelSize(): TrueType Font error. Requested font (tunga.TTF) not found.
>
>why????
>
>
>
>
>*--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
>LCC.Bertha A. Serrato
>bserrato at cicese.mx
>Laborratorio de Percepción Remota y S.I.G.
>CICESE,División de Ciencias de la Tierra.
>Ensenada, B.C.
>*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
>
>
>Copa del Mundo de la FIFA 2002
><http://es.rd.yahoo.com/mail_es/tagline/fifa/vipclub/*http://fifaworldcup.yahoo.com/fc/es/>El 
>único lugar de Internet con vídeos de los 64 partidos ¡Apúntante ya!.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020628/7bf66272/attachment.html


More information about the mapserver-users mailing list