Menu

#21 PNG rendering issue using small text

1.0
closed
None
2016-05-02
2016-04-19
Anonymous
No

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

1 Attachments

Discussion

  • C. Scharenberg

    C. Scharenberg - 2016-04-19

    The bug report was submitted by me using an anonymous account (thanks to Harald Oehlmann).

     
  • Robin Stuart

    Robin Stuart - 2016-04-30

    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.

     
  • Robin Stuart

    Robin Stuart - 2016-04-30
    • assigned_to: Robin Stuart
     
  • Harald Oehlmann

    Harald Oehlmann - 2016-04-30

    Christopy,
    may you conform the effectiveness of the fix so we can close the ticket ?

    Thanks,
    Harald

     
  • C. Scharenberg

    C. Scharenberg - 2016-05-02

    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

     
  • Harald Oehlmann

    Harald Oehlmann - 2016-05-02
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB