In Pcbnew…
Is it possible to change the silkscreen font?
(for example: Courier New)
It would be great to be able to change the font that Pcbnew generates rather than export bitmaps of text and import them as footprints. A client would like to use this font on all of their designs.
Since last episode… nothing exciting happened.
I’ve tried creating bitmaps with the Courier font using GIMP.
The problem is… when I import the bitmap, Bitmap2Component smooths out all those nice square blocks that Courier uses.
Someone out there knows exactly why this is happening.
Is it an inherent problem with the Bitmap2Component tool?
Is it a problem with the way I exported my bitmap? (In GIMP, I am working with a canvas size that is 20x10 pixels. This fits a size “10 pt” Courier font exactly. It’s about 7x3.5mm. You would think that since I’m working down to the pixel level, I am at a high enough resolution?)
Bitmap2Comp is desgined for general graphics, and is designed to smooth out pixels because it is assumed you don’t want blockiness.
The graphics primitives don’t give you much to work with, there is polyline which is unfilled and has rounded end caps. With a high enough resolution the rounded ends are hardly noticeable, but if you have too many lines performance can suffer.
I did a test using polylines, is this the sort of thing you are looking for ?
The character height is 5 mm. The rounded line ends are not really visible ( I used 0.1mm lines). In principle a script could be written to convert any text to bitmap and then to a module.
I’d forgotten that you can have a filled polygon in a module, even though it can not be entered through the GUI (I wonder why?). I also remember something about bitmap2component was changed to reduce the number of lines generated.
So that makes the script a bit simpler, I created a bitmap converter in C#. I guess that it could also be done with the Python API, I am still trying to get to grips with that. The proof of principle is there anyway.
I know this post is quite old.
Still this an issue on KiCAD 6.0.1 but I think the real issue is on the Gerber format and HPGL so far I read.
Also the picture to footprint converter, is useful but at the same time horrible.
I thought to transform the fonts in SVG image, thennmport on KiCAD.
It’s not accepted.
Then PNG: it works.But the final result is meeeeehhhh …I had to retouch any corner any side of the picture (LOGOs)