Inkscape.org
Using Inkscape with Other Programs Exporting SVG text from Inkscape to Krita
  1. #1
    Simon Simon @SimonH

    Hi all,

    my name is Simon and this is my first post!

    I'm designing a logo that hopefully will grace an addon for Blender.
    I wanted to embed an SVG of text into Krita in order to make use of some of the features of Krita.

    The trouble is that the logo has some letters which are larger which show up as the wrong font in Krita.
    Also the text is a little off in terms of placement when it gets to Krita.

    My guess is that Krita does not have the same level of SVG/text compatibility as Inkscape but I have found a work around; convert all layers to vector.

    However this slows me down a bit so I was hoping someone had a more streamlined solutions?

    For example; maybe a special setting or addon to convert to vector while exporting? Just something to reduce clicks/keystrokes.
    Or perhaps someone knows if Krita can be adjusted to better accommodate Inkscape's SVGs?

    Cheers.

    -S

  2. #2
    Polygon Polygon @Polygon🌶

    I can´t find any significantly difference in Krita with Inkscape Text object saved as PlainSVG:

  3. #3
    Simon Simon @SimonH

    Hi Polygon, thanks for the reply. May I have that SVG for testing?

    Is that text all on one line?
    I can get that same kind of behaviour, but only when I convert from object to text. Is this the way I should do it?

    I just attached a screenshot and sample file to hopefully allow you reproduce it.

    I'm using Nobara Linux, Krita 5.2, Inkscape 1.3. Let me know if there's anything else I should provide :)

    -S

    Screenshot From 2023 12 02 23 07 29
  4. #4
    Polygon Polygon @Polygon🌶
    *

    Inkscape will replace fonts if it´s not finding the corresponding ones. So my file will definitely look different from here as yours came in like this

    Perhaps don´t use Text in a Shape for Krita purpose.

     

  5. #5
    Simon Simon @SimonH

    Interesting; in your example the text on top has more spaced out kerning.

    Sorry I totally goofed and forgot to include the font I'm using, attached.

    I wasn't aware that I was using text in shape; Like really no idea how I activated that haha.
    I got the text tool and clicked on the canvas to create new ones and now everything is working! phew.
    Looks I just need to be careful to avoid special effects UNLESS I convert the layers to vector.

    I have also attached a screenshot of it now working (Enough for my purpose anyway!).

    I'm wondering if I do have something more elaborate that makes use of Inkscape's modifiers and stuff; is a quick way to export out an svg where all the layers are just vector layers?

    I was looking for an addon or a script or something; but if one doesn't exist I might try my had at making an extension if time permits.

    Also I have done some digging and wolthera from the Krita team is busy on some new text/SVG stuff which is good to see.

    -S

    Screenshot From 2023 12 03 00 19 41
  6. #6
    Polygon Polygon @Polygon🌶

    Not just the kerning; Krita replaces my used font for no good reason (second line) as it is available on my system.

  7. #7
    Simon Simon @SimonH
    *

    Oh, whoops I hadn't noticed the missing serifs, thanks for pointing that out.
    Thanks for your help thus far too, this is all very valuable to try to have these objective tests together ready in case it helps Krita with their bug squashing.
    I imagine if you export the same file but converting all layers to vector as a workaround; you could force that consistency; but you lose that speed and non-destructive convenience.

    Kerning, font consistency (particularly with alternative font sizing) and positioning; and generally more trouble with shape based text rather than the normal text object.

    I'm no dev, but I wonder what SVG components need to be brought across to Krita to make this work consistently.

    -S

  8. #8
    Simon Simon @SimonH
    *

    Sorry to be a pain Polygon; but are you able to provide me the file you had open there as a test file?
    I would like to provide it directly to wolthera who is taking care of SVG text in Krita.

    EDIT: I captured the issue for reproduction of the kerning bug. I haven't encountered the one you had yet Polygon, not with the normal text layer.

    -S

    Screenshot From 2023 12 03 17 56 17
  9. #9
    Polygon Polygon @Polygon🌶

    I´m not sure how to help any further as my example won´t work for you, when you don´t have the used fonts installed. Just when I convert into paths what you want to avoid if I understand correctly.

Inkscape Inkscape.org Inkscape Forum Using Inkscape with Other Programs Exporting SVG text from Inkscape to Krita