Here's an example of how to use EnumFontFamilies: import win32gui hdc=win32gui.CreateDC('DISPLAY','Display',None) fonts=[] def callback(font, tm, fonttype, fonts): fonts.append(font) print font.lfFaceName return True win32gui.EnumFontFamilies(hdc, None, callback, fonts)
The parameters to the callback need to be documented. I had to look at the source to figure out what to expect. hth Roger ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= East/West-Coast Server Farms - Total Privacy via Encryption =--- -- http://mail.python.org/mailman/listinfo/python-list