erichVK5 / FootprintTextForPCB

A utility for generating silkscreen text as line elements for use in gEDA PCB footprints.
GNU General Public License v2.0
2 stars 2 forks source link

small letters are rendered with wrong index #1

Open olekhov opened 7 years ago

olekhov commented 7 years ago

The example string "You Shouldn't Have Unsoldered This" rendered as follows: you_shouldn_t_have_unsoldered_this-1 3x fp

I think you're missing ` (backquote) from font files. Can't figure out, what do you mean by this:

Hints for non english mapping generally. the " ` " character (usually lives under the tilde " ~ " next to "1") is different to the " ' " character, and will need to be escaped with a "\" to allow alpha to be printed in greek, for example.

Do you really intend to map `(backquote) to alpha, "a" to beta, b to gamma and so on?

erichVK5 commented 7 years ago

Well spotted. I recently batch converted around 51 eggbot fonts, including Cyrillic. These will be better than my original converted fonts, and as a bonus should fix the off-by-one glitch. I will try and get onto that when I am near my development machine. With multiple, simultaneous font support in pcb-rnd now, I'll be able to do side by side comparisons more easily!

erichVK5 commented 2 years ago

Sorry for the slow development cycle.

I have fixed the off by one error in the Hershey sans serif font.

I have generated the now fixed "you shouldn't have unsoldered this" footprint example and loaded it in pcb-rnd:

screenshot-example

As you can see, in pcb-rnd there is a font selection window. This supports up to eight different fonts at a time. Shown here are cyrillic and ukrainian as well as the default font. Of note, the ukrainian font consists of arcs as well as lines, something which is not possible in gEDA PCB.

pcb-rnd also supports text in footprints natively, making FootprintTextForPCB redundant. It would be worth moving to pcb-rnd for this as well as all of the other enhancements.