Menu

#26 Bold text feature request

1.0
closed
None
2016-06-23
2016-05-02
No

Hello Zint-team,

This is not a bug but a suggestion for an extension.

The regular text for EAN-13 barcodes (without using the --smalltext option) looks thin and uses only the half of the available width. I think this can be improved by providing an additional option for bold text. The existing font information can be used to print two pixel for one horizontally to make the font look bold. Together with an extra pixel for the distance between two characters, the bold feature is ready to use.

A related patch is attached. The solution is not prefect and can be improved but it works.

zint -b 13 --boldtext -o ~/zint.png -d 123456789012

I don't know what the GS1 standard says about the font but for me the result looks fine.

Kind regards
Christoph

1 Attachments

Discussion

  • C. Scharenberg

    C. Scharenberg - 2016-05-02

    I added an image of an EAN13 barcode rendered with bold text.

     
  • Robin Stuart

    Robin Stuart - 2016-06-19
    • assigned_to: Robin Stuart
     
  • Robin Stuart

    Robin Stuart - 2016-06-19

    Hi Christoph,

    This patch has now been applied. Can you please confirm that it works as expected. Thank you for your time adding this feature.

    Robin.

     
  • C. Scharenberg

    C. Scharenberg - 2016-06-20

    Hi Robin,

    Yes it works! Thank you for applying the patch.

    Christoph

     
  • Robin Stuart

    Robin Stuart - 2016-06-23
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB