Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Expose rendered text width and height in Sup.TextRenderer #153

Open
elisee opened this issue Oct 21, 2016 · 1 comment
Open

Expose rendered text width and height in Sup.TextRenderer #153

elisee opened this issue Oct 21, 2016 · 1 comment

Comments

@elisee
Copy link
Contributor

elisee commented Oct 21, 2016

We have those internally, we should make them available in the API.

@notexplosive
Copy link

notexplosive commented Dec 17, 2016

Something else I'd like to see is if we could ask a Font asset how wide a particular character is. Something like this.actor.textRenderer.getFont().getTextWidth('a') so that way I can calculate my spacing without having to render it. This might be worth opening a different issue for.

Edit: Apparently this is already a thing. Well now I feel silly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants