We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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?
Answers
PFont.getGlyph(char c)
. If the returned value is null, it does not exist.Perfect! Thanks!