[mapserver-users] TRUETYPE not work

Zhang, William wzhang at c-cor.net
Tue Sep 3 18:07:03 EDT 2002


Steve,

After adding the font size, it works now. You are right. If using truetype,
user needs to specify all necessary parameters.

Thank you very much for the help.

William


-----Original Message-----
From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com]
Sent: Monday, September 02, 2002 6:25 PM
To: Zhang, William; mapserver-users at lists.gis.umn.edu
Subject: RE: [mapserver-users] TRUETYPE not work


William,

Did you get this to work yet? Looks like you need to specify a font 
size. There are no defaults for any of this stuff.

-Steve

On 30 Aug 2002 at 16:12, Zhang, William wrote:

> Steve,
> 
> Yes, I have the MapFile Reference document. I did not specify font in my
map
> file just for simplifying the test. I thought that some default font would
> be used by mapserver if no font is specified by user. Is this true? Anyway
> now I add font related lines in the map file below. It still does not
work.
> 
> NAME alm
> EXTENT  -122.0837 37.6683 -122.1104 37.6885
> SIZE 800 600
> SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35"
> FONTSET "C:\Inetpub\wwwroot\itasca\test\fonts\fonts.list"
>   LAYER    
>     TYPE LINE
>     STATUS DEFAULT
>     DATA alm
>     LABELITEM "FENAME"
>     CLASS
>       COLOR 255 0 0
>       LABEL
>         TYPE TRUETYPE
>         ANTIALIAS
> 	FONT arial	
>         COLOR 0 0 0		
> 	ANGLE AUTO
> 	POSITION UC	
>       END	
>     END
>   END
> END # end of map file
> 
> I have one line in the fonts.list file
> 	arial		arial.ttf
> 
> I also copy the arial.ttf file to the same directory as fonts.list
located.
> 
> Do I miss something else?
> 
> Thank you for the help.
> 
> 
> William
> 
> 
> 
> -----Original Message-----
> From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com]
> Sent: Thursday, August 29, 2002 7:32 PM
> To: Zhang, William; mapserver-users at lists.gis.umn.edu
> Subject: Re: [mapserver-users] TRUETYPE not work
> 
> 
> William,
> 
> Do you have a Map file Reference document?
> You need to look at the LABEL section, you will see that it mentions 
> a FONT tag which references an item in a FONTSET. The document will 
> also tell you how to set up the FONTSET file which will need to point 
> to the the fonts on your system.
> 
> The documentation page can be found off the Mapserver home page.
> 
> -Steve
> 
> On 29 Aug 2002 at 22:04, Zhang, William wrote:
> 
> > Hi,
> > 
> > I got error in the map file below. If I comment out TRUETYPE releated
> lines,
> > the map file works. I downloaded the mapserv.exe from Windows Binary
> > Download page, so it should be TRUETYPE enabled. Could somebody give me
> help
> > on this one?
> > 
> > 
> > NAME alm
> > EXTENT  -122.0837 37.6683 -122.1104 37.6885
> > SIZE 800 600
> > SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35"
> >    LAYER    
> >      TYPE LINE
> >      STATUS DEFAULT
> >      DATA alm
> >      LABELITEM "FENAME"
> >      CLASS
> >         COLOR 255 0 0
> >         LABEL
> >            TYPE TRUETYPE
> >            ANTIALIAS	
> >            COLOR 0 0 0		
> > 	ANGLE AUTO
> > 	POSITION UC	
> >         END	
> >      END
> >   END
> > END # end of map file
> > 
> > 
> > Thanks,
> > 
> > William Zhang
> > 
> > Software Engineer
> > C-Cor.net
> > Phone: (925) 251-3019
> > Fax: (925) 467-0600
> > E-Mail: wzhang at c-cor.net
> > 
> > 
> 
> 




More information about the mapserver-users mailing list