bevy_slugtext 0.1.0

A high-performance GPU vector text rendering plugin for Bevy.
Documentation

example

Integrating to your Bevy App

Add to Cargo.toml:

[dependencies]
bevy_slugtext = "0.1.0"

Include the library:

use bevy_slugtext::prelude::*;

Second, add a SlugTextPlugin to your app:

App::new()
    ...
    .add_plugins(SlugTextPlugin)
    ...;

Then, spawn a textmesh bundle:

```rust
commands.spawn((
    TextMesh {
        text: "hello world".to_string(),
        font: asset_server.load("fonts/Inter.ttf"),
        color: Color::Srgba(Srgba::WHITE),
        size: 1.0,
        ..Default::default()
    },
    Transform::from_xyz(-2.5, 0.0, 0.0),
));