A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/339827.html below:

Font management under win32

Font management under win32 Font management under win32Roger Upole rupole at hotmail.com
Thu Sep 29 18:27:53 EDT 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4