truetype fonts problem...

korakas koarkis korakas2004 at YAHOO.GR
Mon Dec 11 08:55:19 EST 2006


Hi Graham,

You have right I am using the iso8859 Greek arial font. 
I try to use a copy form c:\windows\font the arial unicode ttf file but the problem remains ....

kio

Graham Berry at Virgin <g.berry at VIRGIN.NET> Ýãñáøå:          
 
   v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);}                  Clean   Clean   DocumentEmail      MicrosoftInternetExplorer4     st1\:*{behavior:url(#default#ieooui) }         /* Style Definitions */   table.MsoNormalTable  {mso-style-name:"Table Normal";  mso-tstyle-rowband-size:0;  mso-tstyle-colband-size:0;  mso-style-noshow:yes;  mso-style-parent:"";  mso-padding-alt:0cm 5.4pt 0cm 5.4pt;  mso-para-margin:0cm;  mso-para-margin-bottom:.0001pt;  mso-pagination:widow-orphan;  font-size:10.0pt;  font-family:"Times New Roman";}       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 â&#65533;&#65533;Arial Unicode msâ&#65533;&#65533; font for far east languages.
   
  Hope this helps.
   
  Graham Berry
  gberry at qpqsoftware.com
   
   
  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:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of korakas koarkis
 Sent: 11 December 2006 11:58
 To: MAPSERVER-USERS at LISTS.UMN.EDU
 Subject: [UMN_MAPSERVER-USERS] Î&#65533;έμα: 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> έγÏ&#65533;αÏ&#65533;ε:
     
  
    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
     
  
    
---------------------------------
  
  ΧÏ&#65533;ηÏ&#65533;ιμοÏ&#65533;οιείÏ&#65533;ε Yahoo!
 Î&#65533;αÏ&#65533;εθÎ&#65533;καÏ&#65533;ε Ï&#65533;α ενοÏ&#65533;ληÏ&#65533;ικά μηνÏ&#65533; μαÏ&#65533;α (spam); Το Yahoo! Mail διαθέÏ&#65533;ει Ï&#65533;ην καλÏ&#65533;Ï&#65533;εÏ&#65533;η δÏ&#65533;ναÏ&#65533;Î&#65533; Ï&#65533;Ï&#65533;οÏ&#65533;Ï&#65533;αÏ&#65533;ία καÏ&#65533;ά Ï&#65533;Ï&#65533;ν ενοÏ&#65533;ληÏ&#65533;ικÏ&#65533;ν μηνÏ&#65533;μάÏ&#65533;Ï&#65533;ν 
 http://login.yahoo.com/config/mail?.intl=gr 
  
   
     
     
  
     
  
    ////////////////////////////
  
    Run Skip
  
    http://runskip.com/
  
     
  
    boice tomlin
  
     
  
    boice at runskip.com
  
     
  
    503-528-6204
  
  
 
 
  
     
   
  Â  
    
---------------------------------
  
  ΧÏ&#65533;ηÏ&#65533;ιμοÏ&#65533;οιείÏ&#65533;ε Yahoo!
 Î&#65533;αÏ&#65533;εθÎ&#65533;καÏ&#65533;ε Ï&#65533;α ενοÏ&#65533;ληÏ&#65533;ικά μηνÏ&#65533; μαÏ&#65533;α (spam); Το Yahoo! Mail διαθέÏ&#65533;ει Ï&#65533;ην καλÏ&#65533;Ï&#65533;εÏ&#65533;η δÏ&#65533;ναÏ&#65533;Î&#65533; Ï&#65533;Ï&#65533;οÏ&#65533;Ï&#65533;αÏ&#65533;ία καÏ&#65533;ά Ï&#65533;Ï&#65533;ν ενοÏ&#65533;ληÏ&#65533;ικÏ&#65533;ν μηνÏ&#65533;μάÏ&#65533;Ï&#65533;ν 
 http://login.yahoo.com/config/mail?.intl=gr 
  
  

 		
---------------------------------
 ×ñçóéìïðïéåßôå 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/0d265532/attachment.html


More information about the mapserver-users mailing list