T? µa: Re: [UMN_MAPSERVER-USERS] truety pe fonts problem...

Fawcett, David David.Fawcett at STATE.MN.US
Mon Dec 11 15:18:53 EST 2006


Kio, 
 
Did you use the absolute path in your mapfile?  
 
e.g. Instead of    FONTSET "..\font\fontset.txt"
 
this
 
FONTSET  "c:\ms4w\Apache\htdocs\gp\font\fontset.txt"
 
David.
 
PS.  It looks like you are on Windows, but if this was on Linux, I would also suggest to look at the case of the font file names and the case of the text in your fontset.txt file.  A mix in case threw me a loop the first time that I ported a MapServer app from a Windows to a linux box.  

	-----Original Message-----
	From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of korakas koarkis
	Sent: Monday, December 11, 2006 5:58 AM
	To: MAPSERVER-USERS at LISTS.UMN.EDU
	Subject: [UMN_MAPSERVER-USERS] T?µa: Re: [UMN_MAPSERVER-USERS] truetype fonts problem...
	
	
	Thanks for the quick repsonses.
	
	I used an absolute path to the fontset.txt:
	arial C:\ms4w\Apache\htdocs\gp\font\arial.ttf
	
	and in the map file I refer only to arial truetype fonts but the problem remains!
	
	msGetLabelSize(): TrueType Font error. Requested font (arial) not found. 
	
	Also the arial.ttf file is a copy from the C:\windows\fonts directory  so it is not corrupt..
	
	kio
	
	boice tomlin <boice at runskip.com> έγραψε: 


		Hello,

		I would start by using an absolute path to the fontset.txt file to see if the relative path is the problem.

		Then I would try using just one font in the list and see if you can get that working.  If it can find the arial font but not the arialbd then maybe that font file is corrupt.

		-boice



		On Dec 8, 2006, at 12:02 PM, korakas koarkis wrote:


			Hi all, 
			
			I want to use true type fonts in my maps and I am using the following setup:
			
			a "font" folder with: arial.ttf  arialbd.ttf.
			also in this folder is placed the fontset.txt:
			arial arial.ttf
			arialbd arialbd.ttf
			
			
			and finally in my map file
			
			..
			FONTSET "..\font\fontset.txt"
			....
			  LABEL
			        TYPE truetype
			        FONT arialbd
			         SIZE 9
			
			
			but the mapserver produces ::
			
			msGetLabelSize(): TrueType Font error. Requested font (arialbd) not found. 
			
			
			
			I am completely stuck here.
			The mapserver sees the fontset.txt, (if i rename it it produces an repsective error message) but it can not read the aliases!
			
			
			kio 

________________________________

			Χρησιμοποιείτε Yahoo!
			Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων 
			http://login.yahoo.com/config/mail?.intl=gr 


		
		


		////////////////////////////
		Run Skip
		http://runskip.com/
		

		boice tomlin

		boice at runskip.com

		503-528-6204




	
________________________________

	Χρησιμοποιείτε Yahoo!
	Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων 
	http://login.yahoo.com/config/mail?.intl=gr 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061211/48c59f9d/attachment.html


More information about the mapserver-users mailing list