Crate fit_text

Source
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§

  • A way of indenting a line
  • A way of resizing text in a rectangle

Traits§

Functions§

  • Draw justified, colored text fragments to something using the piston2d-graphics crate
  • Draw justified text to something using the piston2d-graphics crate

Type Aliases§