Expand description
This crate provides an implementation for calculating the positions of text fragments to fit text withing a rectangle.
The graphics
feature, which is on by default, allows the direct rendering of a fitted
text with the piston2d-graphics
crate.
Modules§
- color
- Defines serveral color constants
Structs§
- Basic
Glyphs - A basic implementor for
CharacterWidthCache
- Scribe
- A struct for writing text into multiple rectangles
- Text
Format - A format for some text
Enums§
Traits§
- Character
Width Cache - Defines behavior of a cache of character widths.
Functions§
- fitted_
colored_ text - Draw justified, colored text fragments to something using the
piston2d-graphics
crate - fitted_
text - Draw justified text to something using the
piston2d-graphics
crate
Type Aliases§
- Positioned
Lines - Lines that have starting positions
- Positioned
Lines Meta - Lines with metadata that have starting positions
- Positioned
List - A list of positioned objects