All styles in FontRequester

Just starting out? Need help? Post your questions and find answers here.
Everything
Enthusiast
Enthusiast
Posts: 224
Joined: Sat Jul 07, 2018 6:50 pm

All styles in FontRequester

Post by Everything »

My goal is to list all typefaces of all system fonts and display sizes from minimum to 16 (if available)
Something like that:

Image

I wanted to use this example as a basis but there is one problem
EnumFontFamiliesEx will not return all style variations if the font name is not specified

So for example this code returns me 2203 fonts but if I run PrintMyFonts (with all checked in font style filter) it shows full list with 8512 fonts (variations).

Image

So how can I improve this code to list all of my fonts?