Expand description
§bevy_bitmap_text
Glyph-as-Entity dynamic atlas text rendering backend for Bevy.
Each character is spawned as an individual entity with a Sprite,
enabling per-character ECS-driven animation (shake, wave, color changes).
§Key Types
TextBlock— The main component, replacesText3d.TextBlockStyling— Font, size, color, alignment configuration.DynamicGlyphCache— Global resource managing the glyph atlas.GlyphEntity— Marker component on individual character entities.parse_text_to_segments— Parses{#RRGGBB:content}color tags.
Re-exports§
pub use cache::DynamicGlyphCache;pub use cache::GlyphAlphaMode;pub use cache::GlyphCacheConfig;pub use cache::GlyphInfo;pub use cache::GlyphKey;pub use components::FontLayoutOverride;pub use components::FontLayoutOverrides;pub use components::GlyphBaseOffset;pub use components::GlyphEntity;pub use components::GlyphReveal;pub use components::LayoutGlyph;pub use components::SegmentStyle;pub use components::ShakeEffect;pub use components::TextAlign;pub use components::TextAnchor;pub use components::TextBlock;pub use components::TextBlockLayout;pub use components::TextBlockStyling;pub use components::TextSegment;pub use components::WaveEffect;pub use font_id::FontId;pub use parse::parse_text_to_segments;pub use systems::BitmapTextSet;
Modules§
Structs§
- Bitmap
Text Plugin - Plugin that registers all bitmap text systems.
- Font
Directories - Resource specifying directories to scan for font files at startup.
Functions§
- load_
fonts_ from_ directories - Load fonts from directories specified in
FontDirectoriesresource.