Reputation: 40522
How May I get the path to a specific font in Windows. Is there a specific way to get them for all Windows versions? Or is it different for all OS's.
Example:
.../path/fonts/truetype/arial.ttf
Upvotes: 2
Views: 3612
Reputation: 22478
Option 1: Get a font filepath from name and style in C++/Windows (SO; see also the link therein).
Option 2: There is an API for this, with a CSIDL of CSIDL_FONTS
or (for Vista and later) a KNOWNFOLDERID of FOLDERID_Fonts
.
Upvotes: 1