Jump to content

paint-order of strokes and fills not handled correctly on linked/embedded SVG files


Recommended Posts

Hi all,

this bug is present on both, release and beta build (1.9.0.863) of publisher, so I'm not sure if this is the correct sub forum.

This simple SVG example file (see attachment) contains two rectangles, each with a stroke width of 10mm. On the red rectangle the paint-order of the stroke has been changed, so the stroke lies behind the fill:

image.png.24fb55b2a63090d891f2413df848534c.png

Remark: this is a plain SVG files with no Inkscape specific extensions. It is also rendered correctly by e.g. Firefox.

When I embed this SVG file into a publisher document, the paint order is ignored (and so are the colours, but this is not the point here) (wrong colours due to inadvertently CMYK setting)

image.png.1e40b59ea0290277af72517cd2354fbd.png

Testetd with: 1.9.0.863

This bug is not new to 1.9, it is also present in version 1.8 (version 1.8 showed at least correct colours, but maybe I have not set up my beta environment properly?)

Greetings

max1josef

 

stroke-behind-test.svg

Edited by max1josef
Hint on color setting
Link to post
Share on other sites
4 hours ago, max1josef said:

this bug is present on both, release and beta build (1.9.0.863) of publisher, so I'm not sure if this is the correct sub forum.

Yes, you have posted in the correct part of the forums.

Edit: And for the colors, your GIMP screen looks like you might have an RGB document, and perhaps you've setup your Publisher beta document in CMYK?

-- Walt

Windows 10 Home, version 20H2 (19042.685),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop (2021-04-06):  32GB memory, Intel Core i7-10750H @ 2.60GHz
, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU
Affinity Photo 1.9.2.1035 and 1.9.4.1048 Beta   / Affinity Designer 1.9.2.1035 and 1.9.4.1048 Beta  / Affinity Publisher 1.9.2.1035 and 1.9.2.1024 Beta

Link to post
Share on other sites

Good; that's part of it explained, at least :)

-- Walt

Windows 10 Home, version 20H2 (19042.685),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop (2021-04-06):  32GB memory, Intel Core i7-10750H @ 2.60GHz
, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU
Affinity Photo 1.9.2.1035 and 1.9.4.1048 Beta   / Affinity Designer 1.9.2.1035 and 1.9.4.1048 Beta  / Affinity Publisher 1.9.2.1035 and 1.9.2.1024 Beta

Link to post
Share on other sites
  • Moderators

Hi @max1josef Thanks for letting us know about this. I have managed to recreate this using your example file.

The SVG is using paint-order attribute that specifies the order that the fill, stroke and markers of a given shape or text are painted. You can read about it here: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/paint-order It's interesting to see that Firefox did render it correctly and it's listed as one of the compatible browsers.

We are clearly not honoring the paint-order attribute on import so I will get that logged and passed on to the development team. Thanks 👍

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.