Font management under win32

Roger Upole rupole at hotmail.com
Fri Sep 30 00:27:53 CEST 2005


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 =---



More information about the Python-list mailing list