The Font needs to be installed in a font "dbase". Thats why they call it installing the font....
try the above fuction instead. Use it in userlib form.
Example create file (addfont.decls)
;file content
.lib gdi32.dll
AddFontResource%(filename$)
RemoveFontResource%(filename$)
;end filecontent
after copying the font to the fonts dir, simply run this command and it should work...you doon't realy need to copy it. Just install the font on init of your program and remove it afterwards....
works on NT/95 and all win32 systems...
int AddFontResource( LPCTSTR lpszFilename // address of font-resource filename ); BOOL RemoveFontResource( LPCTSTR lpFileName // address of font-resource filename );
try the above fuction instead. Use it in userlib form.
Example create file (addfont.decls)
;file content
.lib gdi32.dll
AddFontResource%(filename$)
RemoveFontResource%(filename$)
;end filecontent
after copying the font to the fonts dir, simply run this command and it should work...you doon't realy need to copy it. Just install the font on init of your program and remove it afterwards....
works on NT/95 and all win32 systems...