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

@dhowe dhowe self-requested a review December 2, 2025 00:59
… 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
@Vansh0204 Vansh0204 force-pushed the feat/justified-align-dev2 branch from 73f912b to 377ba85 Compare December 3, 2025 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant