I have tried searching for an answer to this but I cannot find anything on SO which is much to my surprise, I thought for sure this must have been asked in the past...
I have a requirement to remove/uninstall a font from the windows directory using a C# .Net (version 4) application. The font in question is usually found somewhere like: C:/Windows/Fonts
My initial thoughts was that I can just delete the file (using File.Delete(...)
), but I am unsure if this is enough? My worry comes from the installation of fonts... if you copy a file to the font folder then you get a dialog saying the font is installing.
If deleting the file is enough then I am happy to do so, or is their a more recommended way that this should be done?
If it makes any difference then the OS is Windows XP and the fonts are custom fonts but I am not sure what the original install method was
As clearly posting on StackOverflow with a tag of C# isn't apparently enough... I want to do this from a C# .Net (version 4) application .
根据此http://support.microsoft.com/kb/314960删除字体文件就足够了
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.