You could do something like:<br><br>string key = map.fontset.fonts.nextKey(null);<br>while (key != null)<br>{<br>     Console.WriteLine(map.fontset.fonts.get(key, &quot;&quot;));<br>    key = map.fontset.fonts.nextKey(key);<br>
}<br><br><br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2009/3/2 prak <span dir="ltr">&lt;<a href="mailto:prakashtilhoo@astuntechnology.com">prakashtilhoo@astuntechnology.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi,<br>
<br>
I am using .Net C# and mapscript_csharp to access objects in the map file<br>
for geting configuration details.<br>
<br>
However, I have been unable to get a list of &#39;fonts&#39; as defined in the map<br>
file. Though I can get the fontset.fonts hashtable that contains the fonts,<br>
I could not find a way to read the hashtable from start to end and get<br>
corrresponding list of items, hence list of font names.<br>
<br>
Grateful if any one could please advise.<br>
<br>
Thank you very much.<br>
<br>
rgds<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/Getting-a-list-of-fonts-using-mapserver-tp2409297p2409297.html" target="_blank">http://n2.nabble.com/Getting-a-list-of-fonts-using-mapserver-tp2409297p2409297.html</a><br>

Sent from the Mapserver - Dev mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
</font></blockquote></div><br>