processing/p5.js

Support 'justified' alignment as an option for textAlign

Open

#3 354 ouverte le 3 déc. 2018

Voir sur GitHub
 (13 commentaires) (7 réactions) (1 assigné)JavaScript (3 178 forks)batch import
Area:TypographyEnhancementHelp Wantedp5.js 2.0+

Métriques du dépôt

Stars
 (20 784 stars)
Métriques de merge PR
 (Merge moyen 8j 13h) (45 PRs mergées en 30 j)

Description

Support 'JUSTIFIED' alignment as an option for textAlign(), so that we can have text that looks like below. Note: we would need to check that the optional 'width' param was specified to text() when using this alignment. If I remember correctly there is an nice dynamic programming solution to this problem.

image

Guide contributeur