I was playing around with the EAN-13 barcode using the frontend command
line application to create a PNG image (Ubuntu 12.04). Zint version is
from 2016-04-15 master branch.
When i'm using option --smalltext, the text is almost unreadable and
placed at the (assumably) wrong location. Example:
zint -b 13 --smalltext -o ~/zint.png -d 123456789012
The reason is quite obvious and probably affects all sort of smalltext use in all barcodes on all platforms. A patch is attached.
C. Scharenberg
The bug report was submitted by me using an anonymous account (thanks to Harald Oehlmann).
Hi Christoph,
Thank you for your bug report and fix. I have adapted this slightly because my personal preference is to avoid ternary operators, but otherwise I have applied your patch.
Thanks again,
Robin.
Christopy,
may you conform the effectiveness of the fix so we can close the ticket ?
Thanks,
Harald
Hi Harald, hi Robin,
I checked out the related commit and it works. That was a quick reaction. Thank you for support.
By the way, I have no problem with different code styles. Although my personal flavour is putting the opening brace on a line of it's own... :-)
Kind regards
Christoph