processing/p5.js

Support 'justified' alignment as an option for textAlign

Open

#3.354 geöffnet am 3. Dez. 2018

Auf GitHub ansehen
 (13 Kommentare) (7 Reaktionen) (1 zugewiesene Person)JavaScript (3.178 Forks)batch import
Area:TypographyEnhancementHelp Wantedp5.js 2.0+

Repository-Metriken

Stars
 (20.784 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 8T 13h) (45 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide