astrahhan
May 3rd, 2001, 04:55 AM
I am using Common Dialog control (Font) for sellecting a font. For some reason I need to get the font filename and not the font name (e.i. I get "Book Antiqua" and I need "bkant.ttf"). Any help?
|
Click to See Complete Forum and Search --> : Get font filename astrahhan May 3rd, 2001, 04:55 AM I am using Common Dialog control (Font) for sellecting a font. For some reason I need to get the font filename and not the font name (e.i. I get "Book Antiqua" and I need "bkant.ttf"). Any help? Cakkie May 3rd, 2001, 05:57 AM In the registry you have a key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts In this key there's an entry for every font. The value contains the filename of the font. The name of the entry in the name of the font, followed by the type. An example could be "Times New Roman Bold Italic (TrueType)", the value would be TIMESBI.TTF. Note that you must include the (TrueType) after the fontname (or whatever type of font it is. Tom Cannaerts slisse@planetinternet.be Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook Cimperiali May 3rd, 2001, 06:07 AM Great! Tomorrow I will give you a full 10! Special thanks to Lothar "the Great" Haensler, Tom Archer, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |