How to check if the loaded font contains a certain character?

edited February 2017 in Programming Questions

In my program I'm loading random fonts from a folder containing TTFs, and each TTF contains a certain number of different characters. Since (in simple terms) I'm generating random characters and drawing them in random fonts, I'd like to be able to first check if the loaded font contains the characters in question, because otherwise it will be displayed as a rectangle (or whatever).

Is there any simple way I could check whether some ttf contains a certain char?

Tagged:

Answers

Sign In or Register to comment.