Skip to content

Cosmic text: provide API to measure text without drawing it. #19382

Open
@viridia

Description

@viridia

What problem does this solve or what need does it fill?

Often in games text is used for things like signs and placards; when creating such it would be useful to be able to accurately measure the size of the text so that it can be scaled appropriately.

What solution would you like?

Cosmic-text is a layout, not rendering, engine, so it should be possible to get metrics about a given text string without actually needing to draw it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TextRendering and layout for charactersC-FeatureA new feature, making something new possible

    Type

    No type

    Projects

    Status

    Widget-ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions