All Fonts On System

Just starting out? Need help? Post your questions and find answers here.
jeslar360
User
User
Posts: 20
Joined: Thu Aug 28, 2008 6:24 am

All Fonts On System

Post by jeslar360 »

I have a program that is in need of a combo box, for selecting a font. I do not intend to use add demos of the fonts to it, because I do not see the need. However, I do need to know how to get the NAMES of all the fonts on the system, so that I can populate the box properly.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Have a look at EnumFontFamilies_(). (Windows only of course.)
I may look like a mule, but I'm not a complete ass.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: All Fonts On System

Post by PB »

> I do need to know how to get the NAMES of all the fonts on the system,
> so that I can populate the box properly

Use the search function here, please. It's been answered before.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Post Reply