Lets say there is a .ttf (True Type Font) file. You can install it on windows with a click. The real name of the font is not the text that is before the .tff (lets say SuperFont.ttf => so the name is not “SuperFont” – it could be, but mostly not). I would like to read the .tff (somehow?) and get the name (without installing the font) of the font. Any ideas?
Share
You’ll need to add the font to a private collection (
PrivateFontCollection), then request theFontFamilyinstance and get itsNameproperty.Like this:
You’ll need the namespaces:
MSDN: PrivateFontCollection, FontFamily