Open Hardware SVG Logo import fails -- SOLVED

I’m having trouble importing the open hardware SVG logos from the official site:

https://www.oshwa.org/wp-content/uploads/2014/03/oshw-logo.svg

The hole in the P is filled in, and the main logo shape is not filled in, but appears as outline

https://www.oshwa.org/wp-content/uploads/2014/03/oshw-logo-outline.svg

The Logo shape is OK on this one, but the P is still filled in.

I’m using KiCad 7.0.1-0.
Both files display properly in a web browser and in Inkscape.

Any tips?

This seems similar to the following two issues, but both posts are a bit out of date at this point. Should I file a new bug? Reopen an existing one? Or has this already been reported somewhere for KiCad 7?

-Matt

Did a bit of experimenting by examining the SVG and hand-editing it.

The cure was to add ‘fill-rule=“evenodd”’ to the polygons that don’t specify it.

Per the spec at Mozilla, the default for ‘fill-rule’ is supposed to be ‘nonzero’, which is the way KiCad is interpreting it.

So, that makes for a tough call:
Should KiCad follow the spec properly?
Or should KiCad do what other software does?

(Inkscape, Chrome and Firefox seem to ignore the property and assume the even-odd rule, which is probably inherited from the way most graphical editors work.)

I suppose the best solution would be to offer some kind of import option… though that would be a lot of work.

Anyway, I’ll try to upload my hand-edited versions if anyone wants them

-Matt

2 Likes

oshw-logo-handedit

oshw-logo-outline-handedit

I’m not sure what you are planning to do with the imported SVGs, but I assume that you are aware of the footprints in the standard library eg “Symbol:OSHW-Logo_38.1x40mm_SilkScreen” etc

1 Like

No, I wasn’t aware. Thanks for the tip!

I searched for OSHW & came up empty… but had not selected the ‘Symbol’ library.

Anyway, I hope the SVG import thing helps someone :blush:

3 Likes

Its worth raising an issue for this so that the developers can think about how KiCad should handle the error

1 Like

This kind of issue was raised up several times. They partially solved it, at leas t for the way I use it; However I hope they will od something definitive because it’s tiring.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.