Can drawTextInRect use fontFamily?

When using drawText(), it's quite handy to be able to pass in a fontFamily table, so that using * * and _ _ in the text string are displaying bold and italics accordingly.

The drawTextInRect() function instead only takes in font, but seemingly not fontFamily.

Does anybody know if there's a way around that? To get drawTextInRect() to use fontFamily properly.

Thank you!

The font parameter is just for convenience. You can call setFontFamily before drawTextInRect to get formatting.

1 Like

Oh... duh... :sweat_smile:

Thank you!!!

1 Like