bevy_slow_text_outline 0.3.0

Text outlines for the bevy game engine
docs.rs failed to build bevy_slow_text_outline-0.3.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: bevy_slow_text_outline-0.2.0

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.

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.17 0.3 - main
0.16 0.1 - 0.2