Skip to content

Improve auto-wrapping text on miniscreen #253

Open
@m-roberts

Description

@m-roberts

See here for discussion of the problem.

Thinking about this, xy actually makes word wrap a bit awkward...

This does it differently - it automatically sets the text size and wrapping to fit in a bounding box. This is much more intuitive, I think>

This implementation also does something similar.

Once we have done this, we can deprecate the miniscreen's 'multiline text' function:

ImageDraw can handle automatic handling of multiline text from its text function - we can move to a single display_text on the miniscreen.
The only thing offered by our multiline text function is word wrapping - this can be moved into the text function, and activated by an optional bool parameter.

We need to carefully consider use-cases here. Perhaps we should support "automatic word wrap" and/or "automatic max font size" by default.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions