INSTALLING A NEW FONT
Posted 28 January 2002 - 17:59
anyone can help me???"!?!
thanx in advance!
Posted 29 January 2002 - 02:09
Win9x Example:
RegDBSetKeyValueEx('SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts', 'Tahoma (TrueType)',REGDB_STRING,'tahoma.ttf', -1)
Win NT Example:
RegDBSetKeyValueEx('SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts', 'Tahoma (TrueType)',REGDB_STRING,'tahoma.ttf', -1)
For more information, check out the post "Adding a font to windows" started by scott matthews2.
As of right now, it's about a dozen posts back.
Posted 29 January 2002 - 08:41
any help welcome - thanx in advance
Posted 29 January 2002 - 15:19
To make the font avaible, you need to register it. Simply copying the file won't do it. That's what those RegDBSet commands are for.
Also I wasn't saying you need to do this to make them available to your install program, just that that would be the time you would set those registry values.
From the looks of it, I think that part of the confusion is the fact that English is a 2nd language to you.
Posted 30 January 2002 - 11:15
the best way i've found is this:
- include the files (tefont.rul-tefont.h) in the main script
- include the DLL in the project
- call the function RegisterFontFromDirectory(DIRECTORY) AFTER having copied the installation files
I was wrong because i copied the fonts before moving all the data.
any questions?