I need a way to check if a specific postscript font is installed on a users computer. I have found many ways to check for true type fonts but none seem to work for post script. I have found checking C:\windows\fonts to be unreliable as sometimes the postscript font file is in that directory but not actually installed and available to programs. All the computers are running windows 7 64bit and I'm using c# .net 4.0
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
So I found two ways of checking this. the first is probably the most reliable but defiantly the most involved
I Borrowed most of this code from another post Enumerating active fonts in C# using DLL call to EnumFontFamiliesEx has me schtumped
The Other way which I have found to be slightly unreliable is the registry key
although this gives you a list of post script fonts. They are not all necessarily installed properly. These keys can point to corrupted fonts that aren't actually installed
I have found the first way of hitting the windows api as the comment suggested works the best