Skip to content

Add text wrapping to FreeText editors (issue 18191) #19345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

avdoseferovic
Copy link
Contributor

I'm aware that there is already an PR open with the similar promise, but the implementation is different.

Note: please read the gist comments https://gist.github.com/bennadel/033e0158f47bff9e066016f99567ebba
This solution might face performance issues with very large text being added.

Fixes: #18191

Before
Screen.Recording.2025-01-18.at.23.24.58.mov
After
Screen.Recording.2025-01-18.at.23.26.22.mov

@Snuffleupagus Snuffleupagus changed the title feat: add text wraping to freetext [18191] Add text wrapping to FreeText editors (issue 18191) Jan 19, 2025
Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

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

Please improve the commit message (see the commit history of the project for examples of how we usually write them):

  • Note the updated PR title, which is thus also a good "title" for the commit message.
  • Generally you want more than a single line in the commit message, such that relevant context is available also on the Git command line.

@avdoseferovic avdoseferovic force-pushed the feat/add-text-wraping-to-freetext branch from cbb1889 to cd76eca Compare January 19, 2025 19:23
@calixteman
Copy link
Contributor

/botio-linux preview

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_preview from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/58c61e5873c6787/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/58c61e5873c6787/output.txt

Total script time: 0.86 mins

Published

@avdoseferovic avdoseferovic force-pushed the feat/add-text-wraping-to-freetext branch from cd76eca to 0208f0b Compare January 23, 2025 23:47
@avdoseferovic
Copy link
Contributor Author

@calixteman please do ignore this for now, my initial approach only worked when pages were not rotated. I tried extending it, but the resulting text after print/save is messed up

@avdoseferovic avdoseferovic changed the title Add text wrapping to FreeText editors (issue 18191) (WIP)Add text wrapping to FreeText editors (issue 18191) Jan 23, 2025
@avdoseferovic avdoseferovic marked this pull request as draft March 5, 2025 20:42
Text wrapping is ensured by preventing the FreeText editor from going
out of bounds.
@avdoseferovic avdoseferovic force-pushed the feat/add-text-wraping-to-freetext branch from 0208f0b to a47cd37 Compare March 17, 2025 21:56
@avdoseferovic avdoseferovic marked this pull request as ready for review March 17, 2025 21:56
@avdoseferovic avdoseferovic changed the title (WIP)Add text wrapping to FreeText editors (issue 18191) Add text wrapping to FreeText editors (issue 18191) Mar 17, 2025
@avdoseferovic
Copy link
Contributor Author

@calixteman this is now ready for review once again, I did a couple of tests with various rotations and zoom factors and all behaved well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add wrapping/resizing for Freetext annotations
4 participants