4 releases (2 breaking)

0.3.0 Aug 24, 2020
0.2.1 Feb 24, 2020
0.2.0 Feb 24, 2020
0.1.0 Sep 8, 2019

#72 in Rendering

32 downloads per month

MIT license

105KB
534 lines

Description

The library provides and implementation of text justification inside rectangles for Rust

Documentation


lib.rs:

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.

Dependencies

~745KB
~16K SLoC