How to delete fonts in code
Posted on 1998-07-28
I'm planning fontviewer for my gladness, with install/uninstall options, but when I have tried to delete some istalled fonts (no importants for the system) by deleting them from fonts-folder or from registry it will
caused errors such as 'acces denied' and 'file system error (1026)'. Sometimes fontfiles become so locked that I can delete them only in Dos. Next steps are prinsible of combinations how I have tried to delete them:
1. Removing current value from registry such as "myFont (TrueType) myfont.ttf
2. Using Removefontresource - function
3. Deleting (if I can, mostly I cannot due to access denied and other errors) myfont.ttf - file from fonts -folder.
Can anybody say is there any special funtions in win95
for the purpose or how to solve the problem?
I have Delphi 2.00