[mapserver-users] Re: msGetLabelSize(): TrueType Font error.Requested font (sans) not found.

Steve Lime Steve.Lime at dnr.state.mn.us
Tue Aug 19 09:42:45 EDT 2008


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
<fa2ac0580808181424n55937c38u80859e2eed4bbf18 at mail.gmail.com>, "John Mitchell"
<mitchelljj98 at gmail.com> 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 <mitchelljj98 at gmail.com>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
>>
> 
> 



More information about the mapserver-users mailing list