Vansh Agarwal
Vansh Agarwal
### Changes - Adds `PRETTY` and `BALANCE` constants to `src/core/constants.js` - Implements Knuth-Plass inspired dynamic programming algorithm in `_lineate` - Minimizes raggedness for visually balanced text blocks - Addresses #7712
### Changes - Adds `JUSTIFIED` constant to `src/core/constants.js` - Implements justified text rendering in `src/type/textCore.js` - Distributes extra space evenly between words - Keeps the last line left-aligned (ragged) for...
PR2 - Adds textWrap(PRETTY) and textWrap(BALANCE) to improve line-breaking aesthetics. - Uses dynamic programming to minimize raggedness; last line has zero penalty. - Integrates with existing text flow in 2D;...
PR 1 - Adds textAlign(JUSTIFIED) support in the 2D renderer for bounded text(...) . - Distributes inter-word spacing to fill maxWidth on non-final lines; final line remains ragged. - Canvas2D...