Skip to content

Conversation

@Vansh0204
Copy link

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 better aesthetics
  • Addresses [2.0] Additional text alignment options #7712
… in 2D

- Adds JUSTIFIED constant to src/core/constants.js
- Implements word spacing distribution in _renderText for justified text
- Last line remains ragged (left-aligned) per typography standards
- WebGL falls back to LEFT alignment
- Includes manual test demonstrating JUSTIFIED with WORD/CHAR wrap

Addresses processing#7712
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant