From: Matt Gushee Date: 2002-10-26T11:56:27+09:00 Subject: Re: Too Brief Before? -- fonts in win32 On Sat, Oct 26, 2002 at 11:18:07AM +0900, Austin Ziegler wrote: > FXRuby has FOX::FXFontDialog to pop up the font list. I don't know of > any non-UI-based way of getting that information (other than reading > the Fonts directory, but that's going to provide only limited > information). You can also do it with Ruby/Tk, which has the advantage of being bundled with the Ruby distribution. For example: require 'tkfont' allMyFonts = TkFont.families BTW I just tried this, and was pleasantly surprised at how easy it was. I've done a lot of Tkinter (Python) programming, and in Python you have to at least instantiate a root window before you can get a list of fonts. That always seemed kind of dumb to me. -- Matt Gushee When a nation follows the Way, Englewood, Colorado, USA Horses bear manure through mgushee@havenrock.com its fields; http://www.havenrock.com/ When a nation ignores the Way, Horses bear soldiers through its streets. --Lao Tzu (Peter Merel, trans.)