I'm currently implementing FreeType 2 in a project of mine and thus need the filepaths for Fonts on my system. I need a solution that only takes the fonts name and the desired font style (eg. **bold** or *italic*) and then returns the filepath for the font.

I already tried the answer from this [Stack Overflow question](https://stackoverflow.com/questions/4577784/get-a-font-filename-based-on-font-name-and-style-bold-italic), but it doesn't work on Windows 7 (and probably neither on Vista), but obviously I need a solution that works on these systems and future systems as well.