Anamican/jsvectoreditor

Improve the Text capabilities

Opened this issue · 2 comments

The following improvements are desired (they are generally consistent with 
the Photoshop, Corel etc. behavior):

1. Make the text editable somehow (the must, you agree?)
2. Improve the text drawing:
* When the user clicks on the button, the tool is selected, but nothing 
happens
* When the user clicks on the canvas, the text box appears in the place of 
the click
* The user enters the text and clicks Enter (or Ctrl+Enter, or on the 
special button shown next to the field, or by just clicking outside of the 
box). Ideally the multi-line textarea should be shown to allow the line 
breaks. But this will require converting the text entered to the text 
element with nested tspans (as far as I understand).
* The text appears with the upper (or lower) left angle at the place of the 
click
* According to one of the previous issues, the text object is selected and 
the tool is changed to 'pointer'. At the moment when you continue clicking 
on the canvas zero-size text objects are added.
3. Make the text editable on double click. When the text object is double 
clicked, the text box containing the current text appears analogically to 
how it does when creating the text.

http://www.w3.org/TR/SVG/text.html#FontPropertiesUsedBySVG
4. Add the ability to set the font for the text. The set could contain the 
standard web fonts (Verdana, Tahoma, Courier New, etc.)
5. Make the text size property (set in pt or in abstract terms like Small, 
Medium, Big, Huge). 

Original issue reported on code.google.com by emiro...@gmail.com on 30 Dec 2009 at 2:28

Original comment by Antimatter15 on 30 Dec 2009 at 6:01

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect
Hello.
The prototype I created using your editor has proofed the concept and will 
probably 
be used as a basis for the production code.
If you're curious, you can see it here: 
http://crunch.ahinea.com/crunch/file/file_123456/annotate/ (you may need to 
resize 
the window before the markup is shown - this is the issue)
By the way, you can use some of my tricks (for example, I lake the options 
controls 
to be shown and hidden when appropriate, and to shown the selected shape 
properties).

But some editor's issues become critical.
So either we pay you and you fix them in some reasonable period (say, 2 weeks), 
or we 
will have to make our fork of your project. The first option is preferable as 
it will 
allow us updating the editor as it will evolve.


Eugene

Original comment by emiro...@gmail.com on 12 Jan 2010 at 4:13