Skip to content

Add a function that measures a text size in CEGUI guiGetTextSize #4464

@gh0st2k2

Description

@gh0st2k2

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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions