#text-rendering #font-rendering #font #3d #gamedev #text #three-d

three-d-text-builder

Glyph atlas based text rendering for the three-d crate

2 unstable releases

0.7.0 Feb 29, 2024
0.6.0 Jan 28, 2024

#86 in Rendering

Download history 15/week @ 2024-03-16 4/week @ 2024-03-23 38/week @ 2024-03-30 62/week @ 2024-04-06 3/week @ 2024-04-13 8/week @ 2024-05-25 16/week @ 2024-06-01 12/week @ 2024-06-08 28/week @ 2024-06-15 113/week @ 2024-06-22 3/week @ 2024-06-29

161 downloads per month

MIT/Apache

63KB
1K SLoC

three-d-text-builder

Glyph atlas based text rendering for the three-d crate, using fontdue.

Important: This crate is not associated with the three-d project itself and the project will not provide any support.

Features

  • Fast and cheap text mesh generation for dynamic text elements
  • Efficient static text mesh generation for fixed text elements
  • Easy alignment of text to the viewport or 3D scene
  • API to build multiple text meshes at once and auto-merge them if possible
    • Supports individual font size, color, alignment and transform for each text mesh
    • Supports indididual color and transform for each text character in a mesh

See the examples for a demonstration of the supported features.

License

Licensed under either of

Dependencies

~9MB
~177K SLoC