Results 1 to 4 of 4

Thread: SVG rendering problems and doubs

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: SVG rendering problems and doubs

    I took a look at the paths defining the left table and it struck me that it was dictating a lot of moveto (m) commands that don't (shouldn't) draw, and a few lineto (l) and circle (c) commands that do. The line and circle commands are your outer border.
    Qt Code:
    1. <path
    2. id="billBg_original"
    3. style="fill:#f0f0f0;stroke:#000000;stroke-width:1.77165353000000003;
    4. stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;
    5. stroke-opacity:1;stroke-dasharray:none;fill-opacity:1"
    6. d="m 495.27339,970.73588 0,-358.53854
    7. m -71.27008,324.1224 0,-324.21608
    8. m 158.9011,358.77089 -511.991713,0
    9. m 511.991713,-34.25 -511.991713,0
    10. m 511.991713,-324.5625 -511.991713,0
    11. m 511.991713,-22.52773 -511.991713,0
    12. m 511.991713,-69.55806 -511.991713,0
    13. m 511.991713,-54.68568 -511.991713,0
    14. m 255.995853,-139.98177 0,139.96355
    15. M 80.901962,325.27594
    16. l 492.013188,0 c 5.54,0 10,4.46 10,10
    17. l 0,669.17246 c 0,5.54 -4.46,10 -10,10
    18. l -492.013188,0 c -5.54,0 -10,-4.46 -10,-10
    19. l 0,-669.17246 c 0,-5.54 4.46,-10 10,-10 z" />
    To copy to clipboard, switch view to plain text mode 
    (line wrapping is mine)
    When I used the Path/Break Apart option in Inkscape and readjusted the depth the missing lines were drawn. The SVG got a bit bulkier with multiple paths. Inkscape may be doing something odd with these paths when combined

    I drew my complex grids as a collection of rectangles and lines rather than one compound path.

  2. The following user says thank you to ChrisW67 for this useful post:

    GuS (5th October 2009)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.