Font problems with GDI+
-
03-07-2019 - |
Question
I'm having trouble with some ttf fonts not working in GDI+. I cannot seem to find any differences between some of the working and non working fonts. Some can be read and rendered without a problem. For some fonts GDI+ just reports the file as missing (which it is not). Something must be wrong with the format but I cannot for the life of me find out what it is... any pointers?
Solution
Microsoft has a decent tool called the Microsoft Font Validator which is a free download.
OTHER TIPS
GDI+ is picky, it only works with true TrueType fonts and not with OpenType or PostScript fonts, so that support is less than with GDI.
Have a look at this link, it may help you out.
The thing about fonts is that they are the one of the least understood aspects of programming. I had a similar problem (see Corrupt TrueType font detection). Have a go through my question -- it may help.
Can you post some more details about your problem such as the API you are using, the fonts that work, the ones that don't etc?