-
-
Notifications
You must be signed in to change notification settings - Fork 490
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
Currently there is no way to get a text size when dealing with CEGUI.
dxGetTextSize
does the job but only when using built-in fonts which are shared between both.
Describe the solution you'd like
guiGetTextSize(string text, mixed font, float width, float height, boolean wordWarp)
width
and height
arguments control the bounding box of the text. They can't be both passed to the function - one of them has to be provided or else just create a label with those dimensions.
Describe alternatives you've considered
No response
Additional context
No response
Security Policy
- I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request