Does anyone know how to enumerate the available fonts in windows? Im sure ive seen this somewhere before. Thanks.
Professional Software Development Tools
Does anyone know how to enumerate the available fonts in windows? Im sure ive seen this somewhere before. Thanks.
You have to enumerate the files inI don't remember if it's the right name for _SystemFolder, but I think so. However I don't remember which action is for listing the files in a folder._SystemFolder.."\\Fonts
You could always try to get this information from the registry, but I don't know enough to help you more about it.
hth - I'm not really sure if this is what you're looking for.
I'm just displaying the first 5 in this example.PHP Code:result = File.Find("C:\\Windows\\Fonts\\", "*.ttf", false, false, nil, nil);
for x = 1, 5 do
Dialog.Message("Font: ", ""..result[x], MB_OK)
end
ahh, of course. *slaps head*
thanks.![]()
...but all the fonts are not TTF. There's at least OTF, but there's another if I recall correctly.
You could just use "*.*" instead of the hard-coding the extention. But make sure to error check after you get that table of index, values!
Intrigued