Font issues when creating a new part

I there,

I downloaded the Fritzing graphic standards files and installed OCRA and Droid Sans which I used in Inkscape to create my part. However when I load the svg graphic into my schematic view I am still getting a “Fritzing only supports OCRA and Droid Fonts” error and my text is not coming in properlyu.

Any suggestions?

Thanks!

Best bet is to upload the .fzpz file of the part (upload is 7th icon from the left in the reply menu) and one of us will have a look at it. Also you need to remove the px from the font-size (Inkscape adds it for CSS, Fritzing objects to it.) I usually use FritzingCheckPart.py to do it (and check the part for correctness,) but a text editor on the svg file will work as well, do a global delete on px usually works.

Peter

Peter,

Thanks for the tip! I hadn’t realized that SVG files are human-readable. I went in and removed the “px” units using Notepad’s find-and-replace function, which seemed to resolve the font size issue. However, I’m still receiving an error message about the wrong font being used. Any advice on resolving this?

Additionally, when I save a part after editing an existing one, I’m not given an option to choose where to save it, and it doesn’t seem to appear in “My Parts.” Do you know where Fritzing is storing it, or how I can locate it?

I’m mainly using Fritzing as a basic schematic capture tool, rather than for board layout. It would be really helpful if I could view the library parts as their schematic symbols rather than as icons. To be candid, it’s hard to distinguish between parts based on the icons alone. Is there an easy way to display library parts by their schematic symbol?

Thanks again for your help!

47 pin connector
schematic.fzz (12.6 KB)

Two suggestions there: first the problem is your font definition in the svg is wrong. It needs to be ‘Droid Sans’ rather than font-family: Droid Sans. The lack of quotes likely gives Fritzing Droid as the font family due to the space in the name without the quotes. The second suggestion is (assuming you are using Inkscape!) use Randy’s schematic extension available here:

although it is apparently currently having problems on Inkscape 1.4 on Linux (works fine on Windows10 for me though!) Randy is working on a fix. As well you have a few problems (that if you only want schematic you may not care about.) Your svg is missing the layerId schematic as a group that contains the entire svg like this

(circled in green on the left.) Without that your part won’t export as an image. As well you don’t have all pins defined in breadboard and pcb so you get the red rectangles in those views

Assuming you are using parts editor, when you save a part it should appear in the mine parts bin like this:

empty mine parts bin

create and save a part in parts editor

capture5

and it writes the part to the mine parts bin.

In practice the files (in repository format not .fzpz format!) are stored in the user directories which vary by operating system in the documents directories

Windows

c:\Users\username\My Documents\Fritzing (where username is your windows id)

Linux

~/Documents/Fritzing/parts

Mac

/Users/username/Documents/Fritzing/parts

the various parts are in subdirectories under these directories. The fzp file is in parts/user and the svg files are in

parts/svg/user/breadboard|icon|schematic|pcb

The only place I know of that being available is in the Inspector window (by part)

Hope this helps.

Peter

Peter,

Thanks so much for all your kind guidance. A few notes:

I downloaded Droid Sans from the suggested Fritzing graphic standards I found online and installed it into Inkscape - that’s why I was surprised that it wasn’t being recognized. If this is a known feature it might be useful to notify users that even after installing the fonts provided in the Fritzing graphic standards they will still need to manually alter the SVG file (if I understand this correctly).

I will download and try Randy’s extension for Inkscape - thanks for this link. that is indeed what I am using to create graphics.

When I saved the part it is not saving it in the mine part bin for some reason - it is saving it in a bin called temp which I was only able to find by searching on the part name. Might be user error on my part?

Thank you very much for guiding me - I really appreciate it!

Dave

I installed it in to Windows rather than Inkscape and usually copy from working files (although I also know the correct format for font family.) This usually is not much of a problem as few people make parts thus there isn’t a lot of effort going it to documenting it. There are a couple of tutorials (that apply to current versions of Fritizng) here, one of mine and one from Old_Grey that may also help because part making is complex and bites without warning (as you have discovered!) You may have already seen them as I post this regularly when part questions come up. If the font is incorrect Fritzing will substitute one of the standard fonts in the sketch and write that out.

I lately learned there aren’t links to the videos in Old_Grey’s tutorial so you need to do a google search for the title and then they come up on YouTube.

It should not be unless you are saving the sketch as a .fzz file rather than the part as a .fzpz file. Fritzing will put all custom parts (any that are not in core parts) in the .fzz file and loading that will put them in the temp parts bin. The parts editor (if you are using it) will store them in the mine parts bin when saved as a new part. My earlier example that wrote to the mine parts bin was from the parts editor.

Peter