Crate fit_text[−][src]
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
Defines serveral color constants
Structs
A basic implementor for CharacterWidthCache
A struct for writing text into multiple rectangles
A format for some text
Enums
Traits
Defines behavior of a cache of character widths.
Functions
Draw justified, colored text fragments to something using the piston2d-graphics
crate
Draw justified text to something using the piston2d-graphics
crate
Type Definitions
Lines that have starting positions
Lines with metadata that have starting positions
A list of positioned objects