Defining a TTF Font File Name

If I have a .NET Font object, is there a way to programmatically determine which ttf file in the C: \ Windows \ Fonts directory was created with?

+3
source share
1 answer

This useful article assumes that by looking at the registry key

HKLM\Software\Microsoft\Windows NT\CurrentVersion\Fonts

You will get a list of name pairs, file name pairs. Open the specified registry key, iterating over the names until you find a match, then the value contains the file name (no path).

+4
source

Source: https://habr.com/ru/post/1749483/


All Articles