[mapserver-users] fonts with ms-3.6
Timothy M. Thompson
tim@GrizzlyLogic.com
Fri, 28 Jun 2002 22:45:25 -0400
--=====================_258302343==_.ALT
Content-Type: text/plain; charset="iso-8859-1"; format=flowed
Content-Transfer-Encoding: quoted-printable
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=20
works both ways).
The word "Tunga" is all you need, since that is what you have listed it as=
=20
in your "fonts.list" file.
Consider your fonts.list as a lookup table (or alias table) for fonts and=20
refer to them by their alias name only. Mapserver will load the fonts.list=
=20
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=20
>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@cicese.mx
>Laborratorio de Percepci=F3n Remota y S.I.G.
>CICESE,Divisi=F3n 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.y=
ahoo.com/fc/es/>El=20
>=FAnico lugar de Internet con v=EDdeos de los 64 partidos =A1Ap=FAntante=
ya!.
--=====================_258302343==_.ALT
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
Bertha,<br><br>
Drop the ".TTF" at the end of your FONT reference in your MAP
file.<br><br>
ie:<br>
TYPE TRUETYPE<br>
ANTIALIAS true<br>
FONT Tunga<br>
SIZE 14<br><br>
(Note: I don't use double quotes around the font alias, but I think it
works both ways). <br><br>
The word "Tunga" is all you need, since that is what you have
listed it as in your "fonts.list" file. <br><br>
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.<br><br>
Best,<br>
Tim<br>
<br><br>
At 11:16 PM 6/28/2002 +0200, bertha amalia serrato de la cruz
wrote:<br><br>
<blockquote type=3Dcite class=3Dcite cite>Hi<br><br>
i've treated use fonts on windows xp with ms-3.6 but mapserver doesn''t
recognize them<br><br>
i have a fonts.list in c:\fonts.list whit:<br><br>
Wingdings 2 c:\WINGDNG2.TTF<br>
Tunga  =
;
c:\tunga.TTF<br><br>
in the map file i have defined<br><br>
FONTSET "C:\fonts.list" <br><br>
and ..<br><br>
LABEL<br>
COLOR 0 0 0<br>
SHADOWCOLOR 218 218 218<br>
SHADOWSIZE 2 2<br>
#TYPE BITMAP<br>
TYPE TRUETYPE<br>
ANTIALIAS true<br>
FONT "tunga.TTF"<br>
SIZE 14<br>
#SIZE MEDIUM<br>
POSITION CC<br>
#PARTIALS FALSE<br>
#BUFFER 2<br>
END<br><br>
the error is:<br><br>
msGetLabelSize(): TrueType Font error. Requested font (tunga.TTF) not
found. <br><br>
why????<br><br>
<br><br>
<br>
*--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-<br>
LCC.Bertha A. Serrato<br>
bserrato@cicese.mx<br>
Laborratorio de Percepci=F3n Remota y S.I.G.<br>
CICESE,Divisi=F3n de Ciencias de la Tierra.<br>
Ensenada, B.C.<br>
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*<br><br>
<br>
<b>Copa del Mundo de la FIFA 2002</b><br>
<a href=3D"http://es.rd.yahoo.com/mail_es/tagline/fifa/vipclub/*http://fifaw=
orldcup.yahoo.com/fc/es/">El
=FAnico lugar de Internet con v=EDdeos de los 64 partidos =A1Ap=FAntante ya!=
.</a>
</blockquote></html>
--=====================_258302343==_.ALT--