On 01/24/2006 03:48 PM, krishna S wrote:
Thanks for your reply daryl, i have one more question too, i want to set
the font size in integer values and not really in tiny or medium terms, so
i guess we need to use the MS_TRUETYPE right, for that i set the fontset
but when i give any font it gives an error, here is the code snippet

$map_path="C:\Apache2\htdocs\mapserverdata\map_files\\";
$fontset = "C:\projects\mapserver-4.6.2\fonts\fonts.list";
$map = ms_newMapObj($map_path."states.map");
$map->setFontSet($fontset);

$class->label->set(type, MS_TRUETYPE);
$class->label->set(font, 'arial');
$class->label->set(size, 6);
 it gives me the following error

Warning: [MapServer Error]: msGetLabelSize(): Could not find/open font,
i am not sure where i am wrong ...

Thanks for your time ....
--kris

Kris,

Do you have a font named "arial" defined in C:\projects\mapserver-4.6.2\fonts\fonts.list? What does that line look like?

--Dylan

Reply via email to