Skip to content

Add a way to set outline for text #7210

Open
@nicopap

Description

@nicopap

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

It is often useful to render text with an outline. Typical use case is for subtitle, it allows making the text readable independently of the background.

It is also useful in general for style.

Bevy doesn't expose any way to define a text outline, your best bet currently is to nest the text in a ui node with a semi-transparent background.

What solution would you like?

I'd like to be able to define text with outlines, both for UI and Text2d.

What alternative(s) have you considered?

Your best bet currently is to nest the text in a ui node with a semi-transparent background. It works, but may not fit the game's art style.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-UIGraphical user interfaces, styles, layouts, and widgetsC-FeatureA new feature, making something new possibleD-ComplexQuite challenging from either a design or technical perspective. Ask for help!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions