Works for me, though I don't usually use the Text and Font dialogue (I click on the text tool, then just click on the existing text directly on the canvas and edit directly there).
Are you clicking the 'Apply' button when you use the Text and Font dialogue? Any changes you make won't be put in place unless you click Apply.
Ah, I presume you're using plain SVG then? It seems to work fine when you use Inkscape's default file format, but yes, I'm getting the same problem when I use plain SVG. The Stack Overflow question explains the reason why it doesn't work, so editing the XML may be the only solution (I'm not certain if things have changed since that question was asked, but given that the issue is still there, I'd guess not!)
multi-line text entered after single click on canvas after selecting text tool works!
Separate lines of text can be added to using the Text tab on the Text and Font dialog! 😀
Clicking Apply on the Text and Font dialog doesn't change carriage-returns in text and multi-line text is preserved.
multi-line text entered in click and drag text box doesn't work if you enter/change text via Text and Font dialog box. As soon as you click Apply all text in box will move to one line.
Text which has been moved onto the same line can be fixed by editing on the canvas and putting in newlines.
One peculiar thing though is that I can't see any difference after examining the XML.
@z3z interesting point. Although the described behaviour can be replicated just from a fresh start of Inkscape before any saving I first encountered this when opening a Inkscape file which was edited on a different computer. (All text in a text box which had previously on separate lines ended up on the same line). There may an issue to do with saving as well?
Here is what worked for me. I experienced the same problem with the text from multiple lines overlaying on the first line. The suggestions I found guided be the saved XML file, Upon examining it I noticed that the line height value was 0 (zero). My solution is this.
1 - enter the first line of the text. 2 - save the file. 3 - open file in some editor and find the code for the text. 4 - change the line-height value in the style attribute of the text. 5 - save the file 6 - reopen with inkscape 7 - add more lines
For example, when the font-size was 7.0556px I changed line-height:0 to line-height:8px
I have now download the source. I am going to see if I can fix the problem.
1 - Select the text 2. Select menu Object -> Selectors and CSS 3. In the tab-pane find line-height (0 by default) 4. Change the value to 1 5. No you should be able to enter new lines in the textbox and the textbox expands as you enter line breaks
When closing the document and the opening again you can still add text rows but they dont show until you resize the box with the handles
Hi, is this correct?
For example, I can't create a text box which contains the following:
------------- begin example ------------
1. first time
2. second item
-----------------end example ---------------
Proof:
1) click text tool
2) type example as above.... looks good :-)
3) go to Text and Font dialog
4) add another line e.g. "3. third item"
5) click apply
Carriage-returns are removed from text?
Thanks, just started using Inkscape and just want to confirm?
Looks like to do what I a want I will need to use multiple text boxes - one for each item?
Thanks :-)
Works for me, though I don't usually use the Text and Font dialogue (I click on the text tool, then just click on the existing text directly on the canvas and edit directly there).
Are you clicking the 'Apply' button when you use the Text and Font dialogue? Any changes you make won't be put in place unless you click Apply.
@z3z yes I'm clicking Apply button in dialogue.
Also, just to be clear, on step 4 above, I am adding the extra line in the dialogue box not on the canvas.
I have done some more research on this and it seems like it may be possible to get it to work?
I got it to work after playing around with the XML editor and the following attribute:
sodipodi:role="line"
Also found this
https://stackoverflow.com/questions/33521024/inkscape-doesnt-allow-to-edit-svg-text-lines-once-it-has-been-saved-as-plain-sv
Will keep trying.
Thanks for your help. :-)
Ah, I presume you're using plain SVG then? It seems to work fine when you use Inkscape's default file format, but yes, I'm getting the same problem when I use plain SVG. The Stack Overflow question explains the reason why it doesn't work, so editing the XML may be the only solution (I'm not certain if things have changed since that question was asked, but given that the issue is still there, I'd guess not!)
Inkscape is designed to compose text on the canvas. The Text and Font dialog is more commonly used to set typeface, style and variants.
Text was recently overhauled, so this may be the best current resource for text features: https://wiki.inkscape.org/wiki/index.php/Release_notes/1.0#Text_Tool
@TylerDurden thanks for that.
I have done some more testing:
Text which has been moved onto the same line can be fixed by editing on the canvas and putting in newlines.
One peculiar thing though is that I can't see any difference after examining the XML.
@z3z interesting point. Although the described behaviour can be replicated just from a fresh start of Inkscape before any saving I first encountered this when opening a Inkscape file which was edited on a different computer. (All text in a text box which had previously on separate lines ended up on the same line). There may an issue to do with saving as well?
Here is what worked for me. I experienced the same problem with the text from multiple lines overlaying on the first line. The suggestions I found guided be the saved XML file, Upon examining it I noticed that the line height value was 0 (zero). My solution is this.
1 - enter the first line of the text.
2 - save the file.
3 - open file in some editor and find the code for the text.
4 - change the line-height value in the style attribute of the text.
5 - save the file
6 - reopen with inkscape
7 - add more lines
For example, when the font-size was 7.0556px I changed line-height:0 to line-height:8px
I have now download the source. I am going to see if I can fix the problem.
I have the same problem in version 1.4.
I solve it by going into Selectors and CSS pane:
1 - Select the text
2. Select menu Object -> Selectors and CSS
3. In the tab-pane find line-height (0 by default)
4. Change the value to 1
5. No you should be able to enter new lines in the textbox and the textbox expands as you enter line breaks
When closing the document and the opening again you can still add text rows but they dont show until you resize the box with the handles
Just go here and enter a useful value: