Skip to content

word wrap on big strings #1118

@caamillo-athomos

Description

@caamillo-athomos

Expected Behavior

The string breaks at maxWidth

Current Behavior

If I don't put whitespaces, it wont break at the maxWidth and it glitches out

Failure Information (for bugs)

Steps to Reproduce

I just printed text to img with maxWidth and tried to text a big string

Screenshots
scarpe2

Context

  • Jimp Version: 0.16.2
  • Operating System: macOS Ventura 13.1
  • Node version: 16.15.0

Failure Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugthere is a bug in the way jimp behaveshelp wantedreleasedThis issue/pull request has been released.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions