processing/p5.js

Support 'justified' alignment as an option for textAlign

Open

#3,354 opened on 2018年12月3日

GitHub で見る
 (13 comments) (7 reactions) (1 assignee)JavaScript (3,178 forks)batch import
Area:TypographyEnhancementHelp Wantedp5.js 2.0+

Repository metrics

Stars
 (20,784 stars)
PR merge metrics
 (平均マージ 8d 13h) (30d で 45 merged PRs)

説明

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

コントリビューターガイド