You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you choose a centrally-aligned TextLayout, the text is offset such that the position of the DrawParam is now the center of the text rather than the top-left corner. This is inconsistent with all other drawables, where unless specified otherwise by the DrawParam, the given position is the top-left corner of the drawable, as well as with previous versions of ggez.
As it currently stands, centrally-aligned text must be handled as a special case in all drawing logic, which is undesirable. Furthermore, if you want to set your text to be drawn with the given position as the center of the text, this is already possible with DrawParam::offset.
The text was updated successfully, but these errors were encountered:
When you choose a centrally-aligned TextLayout, the text is offset such that the position of the DrawParam is now the center of the text rather than the top-left corner. This is inconsistent with all other drawables, where unless specified otherwise by the DrawParam, the given position is the top-left corner of the drawable, as well as with previous versions of ggez.
As it currently stands, centrally-aligned text must be handled as a special case in all drawing logic, which is undesirable. Furthermore, if you want to set your text to be drawn with the given position as the center of the text, this is already possible with DrawParam::offset.
The text was updated successfully, but these errors were encountered: