processing/p5.js

Support 'justified' alignment as an option for textAlign

Open

#3354 aperta il 3 dic 2018

Vedi su GitHub
 (13 commenti) (7 reazioni) (1 assegnatario)JavaScript (3178 fork)batch import
Area:TypographyEnhancementHelp Wantedp5.js 2.0+

Metriche repository

Star
 (20.784 star)
Metriche merge PR
 (Merge medio 8g 13h) (45 PR mergiate in 30 g)

Descrizione

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

Guida contributor