I'm attempting to script up something to convert some historical typefaces off of a Mac Plus emulator. I've got it where it screen captures each glyph individually, and I've pre-calculated the the height and left margin of it which allows me to mostly crop it the way I need. But these fonts seem to be proportional, and several characters are wider than the rest.
Is it possible with shell script tools to determine the x value of the right-most black pixels? Since I'm already using Imagemagick, can it do this itself? I had intended for this to be a quick and dirty project, so I'd like to avoid heavier scripting languages (perl, python) if at all possible.

