]> git.sur5r.net Git - glabels/commit
Improved centering of barcode text.
authorJim Evins <evins@snaught.com>
Sat, 10 Jul 2010 05:38:48 +0000 (01:38 -0400)
committerJim Evins <evins@snaught.com>
Sat, 10 Jul 2010 05:38:48 +0000 (01:38 -0400)
commitb012b9c74def1a87e21e678486eeb4debeaf23be
tree87b43c603e323e694389f7af2af9c36d2c00038e
parent61aa9b8dce8e6143eba39b368897a5f1a39a8e29
Improved centering of barcode text.

Don't try to calculate x offset using hardcoded fixed character width, which
does not work properly for proportional fonts.  Use the origin provided by
zint (wich is at the horizontal center) and use pango to calculate the offset
at render time.
src/bc-zint.c
src/bc.h
src/label-barcode.c