bevyengine / bevyengine/bevy

Add a way to set outline for text

Open
#7,210 7 comments 12 reactions 0 assignees View on GitHub
A-UI C-Feature D-Complex
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.