Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Please improve the text tool #89

Open
Photon89 opened this issue Aug 9, 2021 · 2 comments
Open

Please improve the text tool #89

Photon89 opened this issue Aug 9, 2021 · 2 comments

Comments

@Photon89
Copy link

Photon89 commented Aug 9, 2021

Describe your Issue

The text object can be resized but the resize only scales the text. When writing without spaces, the width of the box will increase, but as soon as there is a space, there will be an automatic line break. Currently there is no possibility to adjust the text area allowing more characters to fit into a line.

How to reproduce?

Create a text field and observe its behavior.

What would be the expected behavior?

The resize squares should resize the text field changing the number of characters fitting into a line and the number of lines. The resize also shouldn't be proportional.

Also the width should be automatically increased as the user types (as it happens already if the text has no spaces), till he starts a new line manually.

The text size should be controllable by a font size chooser alongside the font chooser menu rather than by the size of the text field.

Tell us about your client:

  • Browser: Firefox
  • Browser-Version: 90.0.2
  • OS: Manjaro Linux
@BuchholzTim
Copy link
Owner

The issues regarding the text tool are well known. This is due to limitations of the canvas. Normally text wouldn't be editable, so we have to workaround the canvas restrictions, which resulted in a somewhat usable Text-Tool, which is far from perfect, but did it's job well enough, that we called it ok.

I don't think any of the current maintainers really has the time to actually rewrite it to express the behavior you are expecting from it. But we would love to approve a PR if you want to code it yourself.

@Photon89
Copy link
Author

Photon89 commented Aug 9, 2021

Basically the biggest problem is that there is an automatic line break as soon as a space character is being typed. If there is an easy way to extend the automatic width increase which is already there as long as no space character has been typed, it would be around 90% perfect. 😃

Regarding a PR, I fear, I'm by far not qualified enough to tackle such an issue...

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

No branches or pull requests

2 participants