barcodelib icon indicating copy to clipboard operation
barcodelib copied to clipboard

Support for configuring guard bars for EAN-13

Open mjamro opened this issue 1 year ago • 1 comments

I've added support for configuring appearance of the guard bars for EAN-13 to match the standard. I need the first digit to be the same size as other digits and placed on the quiet area.

EAN-8 implementation will be similar. If you approve this approach i can make the necessary changes.

Default mode (backward compatible)

EAN13_GuardBarDefault

New mode - first char on the quiet zone

Because we need more space to fit the first char outside of the code a margin is added to both ends of the code. This could result in smaller code as on the image below.

EAN13_GuardBarNewMode

Guard bars disabled

EAN13_GuardBarsDisabled

mjamro avatar Mar 15 '24 15:03 mjamro

This looks like it would only apply to EAN/UPC barcodes which is fine. My only concern is that its configured on the outer barcode object and even if configured wouldnt do anything to any other types. Thoughts?

barnhill avatar Mar 31 '24 00:03 barnhill