bevy_slow_text_outline

Crates.iobevy_slow_text_outline
lib.rsbevy_slow_text_outline
version0.2.0
created_at2025-06-22 22:42:28.932477+00
updated_at2025-06-25 00:39:53.70814+00
descriptionUI text outlines for the bevy game engine
homepage
repositoryhttps://github.com/UkoeHB/bevy_slow_text_outline
max_upload_size
id1721990
size135,801
(UkoeHB)

documentation

README

Small crate that adds the TextOutline component for bevy text (both UI and 2d).

Example

Add the plugin:

app.add_plugins(SlowTextOutlinePlugin::default());

Add the component to your UI node with text:

commands.spawn((Text::new("Hello, World!"), TextOutline{ width: 1.0, ..default() }));

Demo

Here is the ui_demo example's output on a Mac, which has a scaling factor of 2.0.

text_outline_demo

Performance

The current implementation is naive and has catastrophic performance degredation scaling with outline width. To avoid melting your GPU, widths are capped at 8 pixels by default (after scaling factors are applied). The max width can be adjusted with SlowTextOutlinePlugin.

Bevy compatibility

bevy bevy_slow_text_outline
0.16 0.1.0 - main
Commit count: 0

cargo fmt