[mapserver-dev] Getting a list of fonts using mapserver

Tamas Szekeres szekerest at gmail.com
Mon Mar 2 09:49:03 EST 2009


You could do something like:

string key = map.fontset.fonts.nextKey(null);
while (key != null)
{
    Console.WriteLine(map.fontset.fonts.get(key, ""));
    key = map.fontset.fonts.nextKey(key);
}


Best regards,

Tamas



2009/3/2 prak <prakashtilhoo at astuntechnology.com>

>
> Hi,
>
> I am using .Net C# and mapscript_csharp to access objects in the map file
> for geting configuration details.
>
> However, I have been unable to get a list of 'fonts' as defined in the map
> file. Though I can get the fontset.fonts hashtable that contains the fonts,
> I could not find a way to read the hashtable from start to end and get
> corrresponding list of items, hence list of font names.
>
> Grateful if any one could please advise.
>
> Thank you very much.
>
> rgds
> --
> View this message in context:
> http://n2.nabble.com/Getting-a-list-of-fonts-using-mapserver-tp2409297p2409297.html
> Sent from the Mapserver - Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20090302/49978cd7/attachment.html


More information about the mapserver-dev mailing list