Inkscape.org
Beginners' Questions Weird stroke style behaviour?
  1. #1
    Andrea P. Andrea P. @Ishmadrad

    Hallo everybody.

    Every time I draw shapes with rounded joins (see picture for an example of a rectangle), I always have a corner that stay "rectangular". If I change to bevel joins, I see no weird behaviour.

    Do you have some insight?

    Thanks in advance.

    2021 09 23 11 20 10  New Document 1   Inkscape
  2. #2
    Polygon Polygon @Polygon🌶

    Better upload the Inkscape SVG. From a quick look it could be 2 points in that spot - if so rectangle select and go "Join selected nodes". If that´s the parametric rectangle tool we need the file.

  3. #3
    Andrea P. Andrea P. @Ishmadrad
    *

    No, it's a standard rectangle. I did other tests, and I see the strange corner appear when I have small lines (in the example I attach, it appears with 0,05mm or less). And only with round ones. I put the bevels too.

    It's annoying, 'cause I'm working on a pretty detailed number of objects, and I keep seeing that weird corner everywhere 😀 Look at the two details of my main file I put here. Every time I create a shape (no double near points, open paths or other issues), there's a sort of "initial point" that stay squared, not round. 

    2021 09 23 12 48 56 Caccia X Ace Dogfight.Svg   Inkscape
    2021 09 23 12 48 01 Caccia X Ace Dogfight.Svg   Inkscape
  4. #4
    Polygon Polygon @Polygon🌶
    🏆*

    This seems an ugly render bug. There´s nothing unusual with the object and opening the SVG in 4 different SVG apps don´t show this "sharp" corner.

    Even in browser it´s looking good.

     

    Ok - Nathan found the bug report: https://gitlab.com/inkscape/inkscape/-/issues/359

    containing workarounds.

  5. #5
    Tyler Durden Tyler Durden @TylerDurden
    👍*

    Another workaround might be to remove and replace a segment, which has the effect of changing the location of the first node. In this case, dividing a segment first is used.

     

  6. #6
    Polygon Polygon @Polygon🌶

    I had already break and join that affected corner point - with the result of traveling to the next corner. Very weird and not cured for over a year now.

  7. #7
    Tyler Durden Tyler Durden @TylerDurden
    🏆

    It appears to be a Cairo thing upstream, Inkscape Devs probably won't be fixing it, unless using a kludge. 

    Adding a node within a segment moves node #1 off a corner.

  8. #8
    Andrea P. Andrea P. @Ishmadrad

    Thanks everybody. So, it's a bug. I'll do the additional node workaround, where it's critical. 😏

  9. #9
    Polygon Polygon @Polygon🌶

    Fortunately Stroke to Path is not affected.

  10. #10
    Andrea P. Andrea P. @Ishmadrad

    Yeah, sadly the PNG exportation suffers from it.

  11. #11
    Polygon Polygon @Polygon🌶
    *

    I have a hard time to replicate everytime. Fun fact: take a fresh file add rectangle 10x9mm/0,5Stroke all is fine - but copy&pasting into your file "weird_strokes.svg" it gets corrupted. The other way around - copy&pasting into a new file - will cure that corner here.

  12. #12
    Andrea P. Andrea P. @Ishmadrad

    Wow, fantastic. 😆

    I created a brand new file in another PC of mine, with a different release, less updated (1.0.2 e86c870879, 2021-01-15, custom). Sadly, I keep having the weird corner even there.

  13. #13
    Polygon Polygon @Polygon🌶
    👍

    Not that I really expect any other - but you´re still not up-to-date. 1.1.1 is around the corner.

  14. #14
    Aero Aero @Aero◻️
    👍

    Same issue in 1.1.1

    Another workaround might be to cut everything out of the document, increase the scale in document properties then paste in place.

  15. #15
    Polygon Polygon @Polygon🌶

    @Aero Yes it shows the same issue with the uploaded file and as I wrote copy&pasting will cure the issue here and with a fresh file I´m not able to provoke the issue - not saying it´s gone or fixed.

  16. #16
    Aero Aero @Aero◻️

    It might work for you with your default template, not necessarily for others with a different default template.

  17. #17
    Polygon Polygon @Polygon🌶

    Interesting - which property do you think provokes this behavior then?

  18. #18
    Aero Aero @Aero◻️

    This.