Hi, More tipps ... Does your mapserver distribution support freetype? Try mapserv -v at the command promt. You should see ... SUPPORTS=FREETYPE ... Do you have the arial.ttf file in the c:\windows\fonts folder? The font set file path should be given relativ to the map file or absolute. Check the relative path or replace with absolute path.
Zoltan On Tue, 23 Jan 2007, Aude Allain wrote: > Hi, > > These solutions don't work. I have always the same error. > > Do you know what is the problem ? > > aude > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:[EMAIL PROTECTED] De la part de Siki > Zoltan > Envoyé : lundi 22 janvier 2007 20:27 > Ŕ : [email protected] > Objet : Re: [UMN_MAPSERVER-USERS] msGetLabelSize() : Could not find/open font > {Scanned} {Scanned} > > Hi, > > 1. Try to remove (TrueType) from your font set file. > 2. Use slash instead of backslash in the path in the font set file even on > Windows > > for example > Arial C:/WINDOWS/Fonts/ARIAL.TTF > > Bye, > Zoltan > > On Mon, 22 Jan 2007, Aude Allain wrote: > > > Hello, > > > > I'm trying to display labels on my map, but I get the following error : > > : msGetLabelSize(): Could not find/open font. > > > > I defined a FONTSET FILE in the mapfile which contains font paths : > > FONTSET "../font/fontset.txt" > > > > Content of fontset.txt : > > > > Arial (TrueType) C:\WINDOWS\Fonts\ARIAL.TTF > > > > And, the layer on which I want to see the labels is defined in the > > mapfile : > > > > LAYER > > > > NAME " A0" > > > > CONNECTIONTYPE oraclespatial > > > > CONNECTION "[EMAIL PROTECTED]/pwd" > > > > DATA "GEOM FROM MN_A0 USING UNIQUE ID SRID 8307 " > > > > STATUS DEFAULT > > > > TYPE POLYGON > > > > MINSCALE 150 > > > > MAXSCALE 500 > > > > GROUP "Administratif" > > > > TOLERANCE 100 > > > > TOLERANCEUNITS pixels > > > > LABELITEM "NAME" > > > > LABELCACHE on > > > > CLASS > > > > NAME "Pays - A0" > > > > COLOR 255 216 176 > > > > OUTLINECOLOR 32 32 32 > > > > TEMPLATE "ttt_query.html" > > > > LABEL > > > > MINFEATURESIZE 1 > > > > MINDISTANCE 1 > > > > POSITION CC > > > > TYPE TRUETYPE > > > > FONT "Arial" > > > > SIZE 12 > > > > ANTIALIAS TRUE > > > > COLOR 0 0 0 > > > > OUTLINECOLOR 255 255 255 > > > > END > > > > END > > > > > > > > END # A0 > > > > > > > > > > > > The font named 'Arial' is in c:/Windows/font. > > > > > > > > On the Web, it is said to check the Apache user or mapserver has > > permission to access the font file and the ttf files. But I don't know > > how to do that. > > > > > > > > Could you hep me ? > > > > > > > > I use : > > > > - windows xp > > > > - ms4w : php/mapscript 4.10, apache 2, php5.2 > > > > - Oracle spatial 10g > > > > > > > > > > > > Aude > > > > > > > > >
