processing/p5.js

Support 'justified' alignment as an option for textAlign

Open

#3,354 创建于 2018年12月3日

在 GitHub 查看
 (13 评论) (7 反应) (1 负责人)JavaScript (3,178 fork)batch import
Area:TypographyEnhancementHelp Wantedp5.js 2.0+

仓库指标

Star
 (20,784 star)
PR 合并指标
 (平均合并 8天 13小时) (30 天内合并 45 个 PR)

描述

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

贡献者指南