Install fonts using 'CopyFile'

BlitzPlus Forums/BlitzPlus Programming/Install fonts using 'CopyFile'

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The Font needs to be installed in a font "dbase". Thats why they call it installing the font....
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...