I write at the moment a programm that search all .ttf file's from the C:\Windows\WinSxS
dictonary and copy them to another dictonary (I think I dont have to post some code here, because its working well).
Now the problem. As example the font arial
is saved with the name arial.ttf
, but this file exists more than 1 time with the same name. Now I found this link here: get font name of ttf file, but the output name is still the same (always arial
). I think the difference between these file is the fontstyle
(italic, bold, ...), but how can I get the fontstyle of each *.ttf
file?