oprypin / crsfml

Crystal bindings to SFML multimedia/game library

Home Page:https://oprypin.github.io/crsfml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option for centred text?

hanyuone opened this issue · comments

I'm currently making a clone of the game Rullo, and I've had to make extensive use of centred text (i.e. text that had a given coordinate, and the centre of the text block was at the coordinate).

Could you provide some way for this to happen?

diagnostics example has that

Yes, I know how to centre texts through the use of local_bounds, but I would prefer if there was an option for centring texts automatically.

CrSFML provides access to SFML's APIs. This is out of scope.