Hi,
 
I have just solved the same problem and this is the snippet from my map file. 
You are probably aware that you need to be careful of the font you are using to 
old your data. If you are using iso8859-n (Greek) then you need a font with 
those characters in the upper 128 character positions. However if you are using 
UTF-8 encoding then use the arial.ttf font and you will get support for 
all/most of the iso8859-n range of character sets.
 
My next trick is to try the new “Arial Unicode ms” font for far east languages.
 
Hope this helps.
 
Graham Berry
[EMAIL PROTECTED]
 
 
MAP
  #
  # Start of map file
  #
  NAME "Bulgaria"
  STATUS ON
  EXTENT 22.097 44.508 28.857 40.653
  SIZE 500 500 
  SHAPEPATH "shpdata"
  SYMBOLSET "symbols/symbols.sym"
  FONTSET "/htdocs/www/v2/map_bulgaria/symbols/fonts.txt"
  IMAGECOLOR 200 200 200
  UNITS DD
  # you may need to change this to match your MapServer build
  IMAGETYPE PNG
  #
  # Start of web interface definition (including WMS enabling metadata)
  #
.
.
.
  #
  # Start of legend
  #
  LEGEND
    STATUS ON
    KEYSIZE 18 12 
    LABEL
      TYPE TRUETYPE
      FONT arial
      SIZE 10
      COLOR 0 0 138
    END
  END
.
.
.
  LAYER
    NAME "ZZ"
    STATUS DEFAULT
    TYPE POINT
    TOLERANCE 5
    CLASS
      NAME "##-##EditLocation"
      SYMBOL 4
      COLOR 0 0 0
      SIZE 8
      MINSIZE 1
      MAXSIZE 100
      LABEL
        TYPE TRUETYPE
        FONT arial
        SIZE 8
        POSITION AUTO
        COLOR 0 0 0
        OUTLINECOLOR 255 255 255
        PARTIALS FALSE
      END
    END
# INSERT EDIT LOCATION {Dynamic points added at runtime}
  END
 
-----Original Message-----
From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On Behalf Of korakas 
koarkis
Sent: 11 December 2006 11:58
To: [email protected]
Subject: [UMN_MAPSERVER-USERS] Θέμα: 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 <[EMAIL PROTECTED]> έγραψε:
 
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
 
[EMAIL PROTECTED]
 
503-528-6204



 
 
  
  _____  

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

Reply via email to