fritzing-app icon indicating copy to clipboard operation
fritzing-app copied to clipboard

Parts editor svg import on 1.0.1 is broken in at least this case.

Open vanepp opened this issue 2 years ago • 0 comments

Current Behaviour

In this forum thread

https://forum.fritzing.org/t/cant-get-svg-to-work/20580/

someone tried to import this svg in to Fritzing 1.0.1 using the parts editor

267d4fb4a1303778208c471c92a84b435f7b32b2

while the svg has a number of issues, Fritzing 1.0.1 has a number of bugs compared to Fritzing 0.9.10. So lets start with this .fzpz file (remove the tailing .zip to keep github happy)

cd4051.fzpz.zip

which is the version of the part posted to the forum on Fritzing 0.9.10. Schematic currently looks like this:

capture

so edit the part in the parts editor

capture1

then load the svg at the top of this post as the schematic svg. Due to a bad font definition in the svg we get the font swap message

capture2

clicking ok uploads the schematic svg correctly.

capture3

Now on to 1.0.1. First I created a fzpz with a blank schematic and loaded it in to Fritzing 0.9.10:

as the new svg was created in Illustrator and dimensioned in px I replaced that svg with a standard Inkscape formatted svg dimensioned in inches to avoid any Illustrator oddness in the following

cd4051-blank-schematic.fzpz.zip

capture4

here the schematic shows up blank as expected. Switching to 1.0.1 things change. While the schematic is blank, and I expected it to look like 0.9.10, it in fact loads a svg looking like the generic IC (which is the family name in the fzp file) which is unexpected.

capture5

now start parts editor which looks to load the svg for the generic IC (which is again different than 0.9.10)

capture6

now upload the new schematic svg but it doesn't load the input svg, but rather makes some odd connector changes (circled in red here.) with none of the changes in the original svg which is incorrect.

Build: Version 1.0.1 (rcCD-1654-0-8f5f1373 2023-09-06) 64 [Qt 6.4.3]

Operating System: Windows 10

Steps to reproduce:

see Current Behaviour

Expected Behaviour

I would expect 1.0.1 to load a blank svg as 0.9.10 did, instead it appears to substitute a svg based on the generic IC (which the family is)

When the new svg for schematic is loaded I would expect to see output as from 0.9.10 where the input svg is replaced in schematic rather than a corrupted copy of the original svg that appears.

vanepp avatar Sep 21 '23 22:09 vanepp