Getting font size from a created font
🖼️ Rendering•Updated 2 days ago•0 views
Cache the size yourself when creating the font (parse it from the font name string), and use render.getTextSize(text) after setFont for text dimensions.
How to get the point size of a font created with render.createFont
Cache the size yourself when creating the font (parse it from the font name string), and use render.getTextSize(text) after setFont for text dimensions.