Probably over my head... Trying to get Font Names

Pierre Quentel quentel.pierre at wanadoo.fr
Fri Feb 18 14:49:11 EST 2005


"Samantha" <samantha7395 at hotmail.com> wrote in message news:<B8KdneiuyLaKoYjfRVn-vQ at adelphia.com>...
> I am attempting to extract the Font Names from the installed windows fonts. 
> I am having a heck of a time getting these rather than the file names. 
> Examples can be seen by going to Control Panel > Fonts
> 
> Any help or direction is appreciated.
> S

Try this :

Python 2.3.2 (#49, Oct  2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from Tkinter import Tk
>>> import tkFont
>>> root=Tk()
>>> print tkFont.families(root)



More information about the Python-list mailing list