shape-rendering="geometricPrecision" Attribute in SVG-File

General discussions about Inkscape.
romoxi
Posts: 2
Joined: Tue May 28, 2019 6:23 am

shape-rendering="geometricPrecision" Attribute in SVG-File

Postby romoxi » Tue May 28, 2019 6:50 pm

Hey there,

Inkscape writes per default the Attribute

Code: Select all

shape-rendering="crispEdges"


into the SVG-File. How can I change this to

Code: Select all

shape-rendering="geometricPrecision"
?

The difference between both is, how a Webbrowser will display the File. The crispEdges version will case some gaps in Firefox, Opera, IE.

Here is a sample-file
with "crispEdges":
mercedes_crisp.svg
(3.35 KiB) Downloaded 122 times

and here is like Google Chrome will display it (screenshot):
mercedes_crisp_chrome.png
mercedes_crisp_chrome.png (1.3 KiB) Viewed 1772 times


The same with "geometricPrecision:
mercedes.svg
(3.36 KiB) Downloaded 121 times

(screenshot):
sorry can't upload more files ;(

Maybe there is a way to set this attribute per default - but I find nothing.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: shape-rendering="geometricPrecision" Attribute in SVG-File

Postby Moini » Tue May 28, 2019 10:50 pm

Is that attribute set per file or per object?

Could a custom default template make it work for you?
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

romoxi
Posts: 2
Joined: Tue May 28, 2019 6:23 am

Re: shape-rendering="geometricPrecision" Attribute in SVG-File

Postby romoxi » Wed May 29, 2019 12:23 am

I think it is set per file, because when I edit the file in an editor and make the change manually it works for the whole drawing. And when I use this file as template it works fine!

Thanx a lot - its so easy ;)

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: shape-rendering="geometricPrecision" Attribute in SVG-File

Postby Moini » Sun Jun 02, 2019 9:03 am

You're welcome, romoxi!
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “General Discussions”