Using bold Text with TextProperties


I’m trying to set a text to bold using TextProperties ( However, this seems unsupported, TextProperties has so setBold() function or something like that ( The only way I can think of to get bold text is using a shadow of the same color and a small x-offset, but that sounds like a very ugly solution :wink:

As far as I know, a bold or italic type of a font is usually stored in a different font file, so you have to load a different font file. For example, if my font name is FreeSerif.ttf , and I want bold text, in the same directory is also the FreeSerifBold.ttf font file.

You could indeed fake it by using shadows, but I don’t think that will really look that good.