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

Tamas Szekeres szekerest at gmail.com
Mon Aug 18 18:06:24 EDT 2008


John,

You should specify the fonts to be used by mapserver in a fontset file
and add the FONTSET section in your mapfile accordingly.
For more information see:
http://mapserver.gis.umn.edu/docs/reference/fontset/fontset/

Best regards,

Tamas



2008/8/18 John Mitchell <mitchelljj98 at gmail.com>:
> 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
>
>
>
> --
> John J. Mitchell
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>


More information about the mapserver-users mailing list