P5.js: Support 'justified' alignment as an option for textAlign

Created on 3 Dec 2018  路  2Comments  路  Source: processing/p5.js

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

typography enhancement

Most helpful comment

Planning to work on this issue!

All 2 comments

Planning to work on this issue!

Great. Note that in some of the approaches discussed online, extra space characters are added to extend the line, however this is not what we want here - rather we need to adjust the start position of each word

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stalgiag picture stalgiag  路  3Comments

ghost picture ghost  路  3Comments

aman-tiwari picture aman-tiwari  路  3Comments

oranyelik picture oranyelik  路  3Comments

stalgiag picture stalgiag  路  3Comments