Mail Archives: geda-user/2013/06/16/18:02:23
Hello again,
It's been a while since I've been doing much PCB design work, so I quit
following geda-user for a couple of years. Anyway... I'm back.
(Different e-mail, was n6nz AT arrl DOT net in the old days, I think...)
So... in gearing up to do a few boards, I've been dusting off a symbol
generator that I started and set aside. The goal is to create
ANSI-compliant schematic symbols. I've got some code just about ready
to push to github that is a reasonably near-miss -- there's things it
doesn't do, and several things that true ANSI-bigots will call me out
on. Meh... it's close enough that I'm happy for now and it's time to
push it out.
My question:
In order to calculate symbol width and layout text correctly, I need a
function to correctly compute the width of each character in strings.
When I originally started the code, I slurped some table out of gschem
that was a look-up table that returned a character width. It doesn't
seem very accurate any more, so I suspect gschem has updated character
rendering since then. Can somebody point me at the code that is the
current correct way to do a layout measurement on a text string?
Thanks,
Dave
- Raw text -