jiayouxjh / grafx2

Automatically exported from code.google.com/p/grafx2
0 stars 0 forks source link

Text tool : multiline #346

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It may be useful to allow multiline support on the Text tool:
1) Allow the user to enter "Carriage return" characters. Even if we keep
the current one-line editable string, we can for example make "ctrl-enter"
input a special character that looks like a carriage return, and is
interpreted as one.
2) Automatic word wrap: The user should be able to enter a width in pixels.
Grafx2 will automatically break line(s) that are too long, without cutting
words. I have to think a little about how the punction marks should behave.
3) Vertical spacing should be customizable (in pixels). Some fonts have a
very large automatic spacing, so Grafx2 should propose negative values as well.
4) Auto-centering is sometimes better, and normally not difficult to
implement. For completeness, we can propose the 3 alignments: left
(default), center, right.

The lack of extended line editing (and clipboard) limits this function. But
when you have a short paragraph to type in a mockup, or simply a list (ex:
game menu), it's a bit painful to manually align the lines, both vertically
and horizontally, so this feature could be useful.

Original issue reported on code.google.com by yrizoud on 19 May 2010 at 12:44

GoogleCodeExporter commented 9 years ago
To align things, you're supposed to use the grid. But well, multiline text may 
make 
some sense.

Original comment by pulkoma...@gmail.com on 19 May 2010 at 6:03

GoogleCodeExporter commented 9 years ago

Original comment by pulkoma...@gmail.com on 9 Aug 2010 at 9:43

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by pulkoma...@gmail.com on 15 Feb 2011 at 8:12

GoogleCodeExporter commented 9 years ago
Multiline text can now be pasted in the input box and is rendered properly.
Would still be nice to have a "readMultiLine" inputbox... but likely more 
complicated to write too.

Original comment by pulkoma...@gmail.com on 25 Sep 2011 at 11:51

GoogleCodeExporter commented 9 years ago
Frozen for 2.4 with current set of features :
User can enter and edit multiline text using control+enter,
Rendering is aligned on left.

Original comment by yrizoud on 8 Mar 2012 at 7:13