Skip to content

fix(text-tool): preserve logical size when committing HiDPI text#9111

Merged
lstein merged 16 commits into
invoke-ai:mainfrom
DustyShoe:Fix(Text-tool)/text-resize-on-commit-on-scaled-dispaly
Jul 21, 2026
Merged

fix(text-tool): preserve logical size when committing HiDPI text#9111
lstein merged 16 commits into
invoke-ai:mainfrom
DustyShoe:Fix(Text-tool)/text-resize-on-commit-on-scaled-dispaly

Conversation

@DustyShoe

@DustyShoe DustyShoe commented May 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixed a Text Tool bug where committed text could become larger than expected on HiDPI displays such as 150% display scaling.

The commit path was creating the raster object from the uploaded image's physical bitmap dimensions instead of the text's logical canvas dimensions. This change keeps the uploaded bitmap intact, but creates the committed canvas image object with logical width and height so the committed layer matches the on-canvas text size.

QA Instructions

  1. Set OS or browser display scaling to 150%.
  2. Open the canvas and select the Text Tool.
  3. Click on the canvas to enter text input mode.
  4. Type some text and note its visual size in the editor overlay before commit.
  5. Commit the text.
  6. Verify the new raster layer matches the overlay size instead of appearing about 1.5x larger.
  7. Repeat with rotated text and verify the committed result stays centered correctly.

Merge Plan

Simple merge.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions Bot added the frontend PRs that change frontend files label May 3, 2026
@lstein lstein added the 6.14.0 label May 9, 2026
@lstein lstein moved this to 6.14.x Theme: LIBRARY UPDATES in Invoke - Community Roadmap May 9, 2026
@DustyShoe
DustyShoe requested a review from JPPhoto as a code owner July 12, 2026 00:34
@lstein
lstein merged commit 3623cc7 into invoke-ai:main Jul 21, 2026
17 checks passed
@DustyShoe
DustyShoe deleted the Fix(Text-tool)/text-resize-on-commit-on-scaled-dispaly branch July 21, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.14.0 frontend PRs that change frontend files

Projects

Status: 6.14.x Theme: USER EXPERIENCE

Development

Successfully merging this pull request may close these issues.

4 participants