Install fonts using 'CopyFile'

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

...you doon't realy need to copy it. Just install the font on init of your program and remove it afterwards....


; Blitz Example with my above userlib

Global fnt$ = "xxx.ttf"

y = AddFontResource(ftn$)
Select y
	Case 0
		; font was not installed
End Select

x = RemoveFontResource(fnt$)
Select x
	Case x = 1
		; font is removed
	Case x = 0
		; font was not removed
End Select


to be honest it havent tried it. But acording to windows api thats what there fuctions are for