💬

Community answer

Collected from the ACE community Discord archive around 2026-06-15. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

Getting font size from a created font

🖼️ RenderingUpdated 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.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.