Font references are stored in a fontset, a simple text file. You need to reference that in your map object and can look at it's contents to determine what's available.
Steve >>> On 8/18/2008 at 4:24 PM, in message <[EMAIL PROTECTED]>, "John Mitchell" <[EMAIL PROTECTED]> wrote: > Sorry for the extra email. I forgot to ask my question to the below email > which is: > How do I know what fonts that are available to my mapserver. > > > On Mon, Aug 18, 2008 at 5:21 PM, John Mitchell <[EMAIL PROTECTED]>wrote: > >> Hi, >> >> Within a map file I am trying to draws labels based on an attribute value >> and I get the following error within the label object: >> msGetLabelSize(): TrueType Font error. Requested font (sans) not found. >> >> Below is part of the map file: >> >> LABELITEM "type" >> >> CLASS >> STYLE >> COLOR 255 0 0 >> WIDTH 2 >> END >> >> LABEL >> COLOR 150 150 150 >> OUTLINECOLOR 255 255 255 >> FONT sans >> TYPE truetype >> SIZE 6 >> POSITION AUTO >> PARTIALS FALSE >> END >> >> END >> >> Thanks, >> >> -- >> John J. Mitchell >> > > _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
