Inkscape.org
Beyond the Basics Is the pattern-fill broken?
  1. #1
    inkHorst inkHorst @inkHorst
    *

    Hi Forum, before submitting this as a bug report, I wanted to check here. I want to use a shape as a pattern to fill another shape. Therefore I did (in Inkscape 1.0):

    • draw rectangle
    • draw cicle w/ diameter much smaller than the side-length of the rectangle
    • select the circle and: Object > Pattern > Object to pattern
    • select the rectangle and in Fill and Stroke use the pattern as a fill

    Now I see two issues:

    • the circles filling the rectangle are much larger than the circle i drew
    • when I edit the pattern with the node tool it does not update the filling of the rectangle

     

    Am I missing something or is this a (two) bug(s)? :)

    Thanks a lot 👍

     

  2. #2
    inkHorst inkHorst @inkHorst

    no one? :/

    this is what it looks like. obviously i was expecting the large square to be filled with circles as small as i drew for the pattern.

    (like here: https://www.youtube.com/watch?v=8LOE9VyLcaM and as I wrote, also what is explained in the 2nd part of the video does not work: if I edit the pattern, the filling does not change 🙄)

     

    Pattern
  3. #3
    Tyler Durden Tyler Durden @TylerDurden

    Seems to work here. Windows, Inkscape 1.0.

  4. #4
    inkHorst inkHorst @inkHorst

    Hm, OK, thanks! Will try it on Windows & report. I was using the .AppImage of 1.0 on Linux.

  5. #5
    inkHorst inkHorst @inkHorst

    I tested it on macOS and it's the same (unexpected) behavior I described above. Will test on Win10 asap.

    @TylerDurden are the steps I described above correct? Do you get the big rectangle filled with small circles, if you do them? and does the fill adapt when you edit the circle?

  6. #6
    Tyler Durden Tyler Durden @TylerDurden

    It works here as it is shown in the video.  Keep in mind, the handles to manipulate the pattern fill may be far away from both the pattern source and the filled object, sometimes far up and to the left.

  7. #7
    Aero Aero @Aero◻️

    It looks like 1.0 behaves different than 0.92.5. In 1.0, I have to set document scale to 96 user units per inch in order to have the pattern created the right size.
     

  8. #8
    Tyler Durden Tyler Durden @TylerDurden

    I'd file a bug report. That's likely a regression back to the good ol days: https://bugs.launchpad.net/inkscape/+bug/1670913

  9. #9
    inkHorst inkHorst @inkHorst

    > It looks like 1.0 behaves different than 0.92.5. In 1.0, I have to set document scale to 96 user units per inch in order to have the pattern created the right size.

     

    Good find! 👍

    I'll file a bug report then.

  10. #10
    Tim Becker Tim Becker @a2800276048c1100a4e04db9

    @inkHorst did you ever get around to filing a bug? I'm affected by the same behavior (1.0 from 2020-05-07 on Ubuntu 20LTS) and I was trying to find the bug you filed to see if there is any progress, but couldn't find anything...

  11. #11
    Kim Olsen Kim Olsen @qimO

    Was just trying this myself, and I have the exact same problem. Still not resolved, or am I maybe doing something wrong?

    Any takers on this?

  12. #12
    rednavj rednavj @rednavj

    I am seeing the same problem.  Documentation says the tile scale in the pattern fill should be determined by the bounding box of the object that was made to a pattern.  But as reported above, the scale of the fill is much larger than the object size.  I am using Mac OS and Inkscape 1.01

    Now here is the interesting thing.  I have lots of old documents created in earlier versions of inkscape.  If I open one of those older documents, the pattern scaling works properly even when opening  using 1.01

    Hopefully this is a clue to one of the experts in the forum.  My uneducated guess is that it is related to document properties or preferences but I can't spot anything.

  13. #13
    rednavj rednavj @rednavj

    Work around to fix pattern scaling problem:  

    In case it was not clear from my post above - I am able to work around the pattern fill scaling problem by opening an old document created in a version of Inkscape prior to 1.0.  (I am not sure how far back you have to go).  So if I am creating a new document in 1.01, I actually open an old document and delete everything on it and then I can use pattern fills properly in Inkscape 1.0 and 1.01.

    Again - helpfully this will help someone figure out the underlying problem.

  14. #14
    TheTobyStudio TheTobyStudio @toby.hiung

    I always find the pattern handle located at top left corner of document. Try and see if it works for your case.

     

    This2
    This1