8000 use a consistent text layouting algorithm by iliazeus · Pull Request #951 · jimp-dev/jimp · GitHub
[go: up one dir, main page]

Skip to content

use a consistent text layouting algorithm - #951

Closed
iliazeus wants to merge 3 commits into
jimp-dev:masterfrom
iliazeus:fix-measure-text-height
Closed

iliazeus wants to merge 3 commits into
jimp-dev:masterfrom
iliazeus:fix-measure-text-height

Conversation

@iliazeus
@iliazeus iliazeus commented Oct 7, 2020
Copy link
Copy Markdown
Contributor

What's Changing and Why

In the print plugin, there are two places where the text is split in lines no longer than maxWidth. They all use slightly different algorithms, which produces inconsistent results. This PR fixes that by using the splitLines() function in both places.

What else might be affected

While it is, technically, a breaking change, I am fairly sure that nothing breaks because the behavior was both unexpected and undocumented.

Tasks

  • Add tests
  • Update Documentation (not needed)
  • Update jimp.d.ts (not needed)
  • Add SemVer Label

{
"name": "@jimp/plugin-print",
"version": "0.16.1",
"version": "0.16.2",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert this, it happens automatically

@hipstersmoothie
Copy link
Copy Markdown
Collaborator

closed in favor of #1133

@iliazeus
iliazeus commented Feb 7, 2023
Copy link
Copy Markdown
Contributor Author

Sorry, was on vacation, only just got to my PC. Thanks for accepting my contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0