#bevy #graphics #gamedev #game-engine #game

yanked bevy_default_font

Default font support for the Bevy game engine

0.1.0 Dec 12, 2022

#794 in #game-engine

22 downloads per month

MIT/Apache

1.5MB
60 lines

🌷🌷 Bevy x Default Fonts 🌸🌸

Default font support for the Bevy game engine

An animated image showing the text debug example from the Bevy source code, modified to use the Bevy Default plugin for default font support.

Caption: An animated image showing the text debug example from the Bevy source code, modified to use the Bevy Default plugin for default font support.

Have you used Default::default() on TextStyles? Have you created Textes inside of From and Into trait implementations? Have you crazed yourself when seeing https://github.com/bevyengine/bevy/issues/1017?

Have you be dissapointed that there isn't a way to easily assign the default font in Bevy?

We're trying to fix that! 😊 bevy_default_font is a plugin that allows you to easily assign the default font for UI elements in the Bevy game engine.

✨ Features

  • Set the default font that your UI text in Bevy
  • You can run bevy_default as a:
    • System (runs every frame, thoughh bad performance on production, but it's good if you think you're going to use the UI inspection feature frombevy-inspector-egui)
    • Setup System (only runs once so any future TextStyles aren't going to be styled, but this means that it only runs, exactly, once!!)
  • It's easy to use too!
 app.add_plugin(
    DefaultFontPlugin::new(
        |_, server| server.load("NotoSans-Regular.ttf"),
        Mode::Setup,
 ));

πŸ“œ License

Licensed under either of

at your option.

πŸ’ Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~15–33MB
~498K SLoC