[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 &quot;.TTF&quot; at the end of your FONT reference in your MAP
file.<br><br>
ie:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE TRUETYPE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANTIALIAS true<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FONT Tunga<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 14<br><br>
(Note: I don't use double quotes around the font alias, but I think it
works both ways).&nbsp; <br><br>
The word &quot;Tunga&quot; is all you need, since that is what you have
listed it as in your &quot;fonts.list&quot; file.&nbsp; <br><br>
Consider your fonts.list as a lookup table (or alias table) for fonts and
refer to them by their alias name only.&nbsp; Mapserver will load the
fonts.list file to find the path/filename of the actual TTF
file.<br><br>
Best,<br>
Tim<br>
&nbsp;<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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c:\WINGDNG2.TTF<br>
Tunga&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;
c:\tunga.TTF<br><br>
in the map file i have defined<br><br>
FONTSET &quot;C:\fonts.list&quot; <br><br>
and ..<br><br>
LABEL<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SHADOWCOLOR 218 218 218<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SHADOWSIZE 2 2<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #TYPE BITMAP<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE TRUETYPE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANTIALIAS true<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FONT &quot;tunga.TTF&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 14<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #SIZE MEDIUM<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION CC<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #PARTIALS FALSE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #BUFFER 2<br>
&nbsp;&nbsp;&nbsp; END<br><br>
the error is:<br><br>
msGetLabelSize(): TrueType Font error. Requested font (tunga.TTF) not
found. <br><br>
why????<br><br>
&nbsp;<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--