basickarl
basickarl

Reputation: 40522

C++ font path Windows

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

Answers (1)

Jongware
Jongware

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

Related Questions