Whitebird icon indicating copy to clipboard operation
Whitebird copied to clipboard

Please improve the text tool

Open Photon89 opened this issue 2 years ago • 2 comments

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

Photon89 avatar Aug 09 '21 17:08 Photon89

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.

BuchholzTim avatar Aug 09 '21 17:08 BuchholzTim

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. :smiley:

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

Photon89 avatar Aug 09 '21 18:08 Photon89