Inkscape.org
Beginners' Questions Problems setting the line-height
  1. #1
    bobdobbs bobdobbs @bobdobbs

    I've created a simple image with just a block of text. 
    The block of text is a single sentance with to line breaks. It is a single text object.

    If I do the following I get an unexpected result:

    Select the text tool > select the text object > increase the value in the line-height setting in the toolbar

    If I do this, nothing happens. So I try something else:

    Select the text tool > select the text object > highiight the text > increase the line-height setting in the toolbar

    When I do this operation weird stuff happens: the very first line sinks vertically and falls below the next line.  The rest of the lines are unnaffected.

    So, increasing the value of the line-height in the setting has the opposite of the intended effect on one part of the text object (reducing the line-height) and has no effect on any text after the first line-break.

    It's as if the line-height setting in the toolbar is unusable.

    What could be happening here?
    How do I alter the line-height of a block of text that has line breaks?

  2. #2
    Nathan P. Johansen Nathan P. Johansen @NPJ2000

    Hi, bodbdobbs:

    By default, Inkscape uses 1.25 lines as the spacing. If you use the text tool to place lines of text on the canvas, you will also need to use the node tool to adjust the width of that text object.

    When you've selected the text object and then select the text tool, you should see a dialogue along the top of the canvas that shows the current line spacing, You can adjust that and it will apply to all lines in the selection.

    If you being to select only portions of text and adjust their settings (line spacing, kearing, etc.) then it is possible to produce results which will place a leading line below a following line.

    When you're consistently setting type, it is best to determine what line spacing works best, and then ensure that each and every line in your text object are set the same, The text flow should then look correct again.

    If you think that this is a bug and you can reproduce it consistently, then you're welcome to file a report. Click on "Help" and then "Report a Bug" to be directed to that process.

    Best,

    Nathan

  3. #3
    Flamingolady Flamingolady @flamingolady🦩

    Just to add to the above reply, I find that it's best to chg the line spacing as soon as you see your cursor using the text tool.  Click on the '?' which will show the default 1.25 line spacing, then change it to 1 (the line spacing is the box that is the 2nd box to the left of the ?).

  4. #4
    brynn brynn @brynn

    Which version of Inkscape?

    In 0.92.3 or 0.92.4, I've found 3 important settings for the Text tool.  (just adding another one to what Flamingolady said)

    • disable the question mark button, if it's enabled
    • set the line spacing units to "blank"  (the attached screenshot shows)
    • set the line spacing to 1

    This makes the line spacing work automatically for any size of text that you use.  If you choose some particular units, you have to change the spacing for every different size of text you might use.  Also, if you change the line spacing value before you change the units, you might have to re-set the value again, after you change the units.

     

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Problems setting the line-height