Skip to content

add text height calculation for multiline text area #5404

Closed
@outofambit

Description

@outofambit

(As previously noted in #5366)

We support vertical alignment of text with textAlign(), but right now the vertical height for multiline text is not computed. This means that a single line text is vertically aligned properly, but not multiline text.

It might be tricky to calculate the total height of multiline text because the text wrap style will change how many lines of text are laid out.

https://editor.p5js.org/outofambit/sketches/eqIUrqXH6 would demonstrate this issue, but won't render until we release a version of p5.js with the bug fix in #5366.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions