unable to change the layer font
krishna S
kris_rock82 at YAHOO.COM
Tue Jan 24 15:48:17 PST 2006
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
More information about the MapServer-users
mailing list