Inkscape.org
Beginners' Questions Problem with the text tool
  1. #1
    Miglix21 Miglix21 @Miglix21

    Hello everyone, how are you? I hope that you are doing fine. I am having problems with the text tool. When I write a paragraph, the space between lines misbehaves. The second line has a distance from the first line, but, the third line has a different distance from the second line, farther than the distance between line 1 and 2. So, the paragraph doesn't have consistency. Has anybody experience this issue? How can I fix it?

  2. #2
    Jurgen Gaeremyn Jurgen Gaeremyn @JurgenG

    Hi Miglix21,

    could you start off by telling us exactly what version of Inkscape you're using? This might help a lot in figuring out if it's a bug or a configuration thing.

    If you could share a file in this forum, we could also have a look if we have the same behavior as you. If we do, we can have a look what causes it.

    Does this problem happen with all fonts, or only with a specific font?

    Finally: does this strange effect also occur when you open the file in your browser? Or only in Inkscape?

  3. #3
    Olivier LE BORGNE Olivier LE BORGNE @olb

    Dear Jurgen,

    I just open a ticket concerning this problem today with the information you request for my part.

    Please find the ticket title :

    Wrong interline on text

    Best regards

  4. #4
    Olivier LE BORGNE Olivier LE BORGNE @olb
    *

    Dear Jurgen,

    Concerning the effect when you open the file with Inskcape, you have  this effect :

    First line
    second line


    third line


    fourth line

    and in a browser

    First line


    second line


    third line
    fourth line

     

    The effect are not the same !!

     

     

  5. #5
    Jurgen Gaeremyn Jurgen Gaeremyn @JurgenG

    Sorry for the misunderstanding... I'm just a volunteer like you (and I think almost everyone in this  community). Could you share the link to the issue?

    I understand the problem. But an SVG file also contains other code inside. It's mostly that that I need.

    Did you try saving the SVG file and opening it in your browser? (chrome, firefox, etc...)

  6. #6
    Olivier LE BORGNE Olivier LE BORGNE @olb
    *

    Hi,

    I explained in the previous message that the ouput is not the same if I open the file with inkscape or in a browser:

    In Inkscape, the fisrt and second line are ok, the third and fourth line are wrong. With the browser, the second line is wrong, the third and fourth line are correct.

    Regards,

                                                                

  7. #7
    Miglix21 Miglix21 @Miglix21

    Hello everybody, how are you? Sorry for not replying before, I was at work. I am using the last version of Inskcape on Manjaro KDE. I have uploaded a screenshot of the document file I was working with. When I saved the file, the text was okay, but when I re-opened it, I found that the text was moved. I also wrote in two different fonts and it has the same behavior. I opened the svg file on the web-browser (screenshot attachted) and it is the same. 

    Screenshot 20220112 154609
    Screenshot 20220112 154542
    Screenshot 20220112 154453
  8. #8
    Polygon Polygon @Polygon🌶

    Have you tried already with the affected text Text->Remove Manual Kerns and reset Vertical Kerning to zero or go Inkscape Preferences->System->Reset Preferences and restart Inkscape?

  9. #9
    Olivier LE BORGNE Olivier LE BORGNE @olb

    From my side, I applied your suggestion. The problem remains intact.

    BR

  10. #10
    Jurgen Gaeremyn Jurgen Gaeremyn @JurgenG

    Would you be okay sharing a minimal SVG file (so we can look at the SVG code)?

    What version of Inkscape are you using (and what installation form is it? snap? appimage? pacman?) ? As you're a manjaro user, I'm assuming you have some (more than) basic OS skills. Can you try if the problem also occurs with a different version of Inkscape? You could use a different appimage if needed.

  11. #11
    Miglix21 Miglix21 @Miglix21

    Well, I am afraid to say that I am not that experienced. I can share the file I am working with, no problem with that. I don't have snaps or flatpak installed (eventhough I have used them before), I just installed it from the manjaro add/remove software manager. My version of Inkscape is 1.1.1-5 (which I think is the last as I updated my system like 3/4 days ago, and by the way, I didn't have this issue before that). I will try perhaps installing a different version of Inskcape to see if I still have the same issue, the thing is that I don't know how to do it, but, I'll figure it out. I'll also try to remove manual kerns, and I tried to Reset the system preferences but that didn't work either. 

    Alvaromenu1
  12. #12
    Olivier LE BORGNE Olivier LE BORGNE @olb

    I am in the same version of inkscape 1.1.1-5. For memo :

    Inkscape 1.1.1 (3bf5ae0d25, 2021-09-20, custom)

        GLib version:     2.70.2
        GTK version:      3.24.31
        glibmm version:   2.66.2
        gtkmm version:    3.24.5
        libxml2 version:  2.9.12
        libxslt version:  1.1.34
        Cairo version:    1.17.4
        Pango version:    1.50.3
        HarfBuzz version: 3.2.0
        Poppler version:  21.11.0

        OS version:       Manjaro Linux

    I never install package from snap and flatpak like Miglix21. The previous version 1.1.1-3 run correctly. I testetd on another computer with Manjaro KDE. I posted on the forum of manjaro.fr a ticket. Another people has the same problem on manjaro KDE. I have no replyconcerning the other desktop environnement.

    BR

  13. #13
    Polygon Polygon @Polygon🌶

    I´m not sure that is your bug report (https://gitlab.com/inkscape/inbox/-/issues/6112) - but it looks100%  ok here aside we´re using different default fonts obviously, which always makes me doubt if the fonts are okay.

     

  14. #14
    Miglix21 Miglix21 @Miglix21

    I never said that my Inkscape was intalled with snaps or flatpaks @Olivier LE BORGE . I said that I have used them before, when I started with Manjaro, and never used them again because I read that it makes your computer slower, ect.. I don't even have them in this system, I don't understand why do you have to do a comparison like that, and, I don't understand either how it helps to solve the problem. In my case it doesn't happen the same as @Polygon screenshoot. The fourth and fith line has the same separation. 

    Screenshot 20220113 084150
  15. #15
    Polygon Polygon @Polygon🌶

    Funny wise it looks crap in browser as displayed exactly at the left including font. Seems the Bug is closed due a new appimage built from what I read.

  16. #16
    Jurgen Gaeremyn Jurgen Gaeremyn @JurgenG
    👍

    You are right, it is a known bug. It is fixed in 1.1.2 (so slightly newer than what you have). Look here:

    https://gitlab.com/inkscape/inkscape/-/issues/2864#note_732366466

    So the issue is that a library called Pango changed how it handles text. Older versions of Pango work fine, newer ones need an updated version of Inkscape.

    So there are a few possible solutions:

    1. Use the appimage here: https://inkscape.org/release/all/gnulinux/appimage/  (appimage is a way of installing that has all the needed libraries embedded, so it's a working version of Pango) (Here's how to use appimage on manjaro: https://forum.manjaro.org/t/how-to-use-appimage-on-manjaro-arch-based-linux/34375)
    2. Use a development version of Inkscape (might crash though, it's not a stable version) - you could look here https://aur.archlinux.org/packages/inkscape-git/ or here https://inkscape.org/release/dev/platforms/
  17. #17
    Olivier LE BORGNE Olivier LE BORGNE @olb
    👍

    Dear Jurgen and Polygon,

    Thank you for your message. I am going to wait a new package in my official repository.

    Dear Miglix21,

    My apologize concerning the subject concerning snap and flatpak, I meant that I am the same view like you!!

  18. #18
    Miglix21 Miglix21 @Miglix21

    Don't worry @Olivier, I thought you were saying something else. @JurgenG Than k you Jurgen for the solutions, I have not applied them, I'll see if it works out, and will update the post when I do it.