If I have a .NET Font object, is there a way to programmatically determine which ttf file in the C:\Windows\Fonts directory it was created with?
This helpful article suggests that by looking at registry key
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Fonts
You'll get a list of fontname, filename pairs. Open said registry key, iterate through the names until you find a match, then the value contains the filename (without a path).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With