ZF-12142: Code128 Barcode Object does not respect barThinWidth option

Issue Type: Bug Created: 2012-04-10T12:36:06.000+0000 Last Updated: 2012-04-13T08:57:56.000+0000 Status: Resolved Fix version(s): - 1.11.12 (22/Jun/12)

Reporter: Trevor North (trevor) Assignee: Mickael Perraud (mikaelkael) Tags: - Zend_Barcode

Related issues: - ZF-11106



In Zend_Barcode_Object_Code128 when adding entries to the $barcodeTable in _prepareBarcode all entries are added with a width of 1 pixel instead of respecting the barThinWidth option.

This results in barcodes being output where the bars fill only a fraction of the available width.

It's worth noting that _calculateBarcodeWidth does respect this option correctly.

<pre class="highlight">
$barcodeTable[] = array($c, 1, 0, 1);

<pre class="highlight">
$barcodeTable[] = array($c, $this->_barThinWidth, 0, 1);

As a workaround the scaling factor option may be provided instead so long as the barThinWidth is left at 1. This is not ideal however and does of course impact other sizing calculations.


Posted by Trevor North (trevor) on 2012-04-13T08:38:02.000+0000

Version number blindness on my part here. This is in fact resolved as part of ZF-11106.

Posted by Mickael Perraud (mikaelkael) on 2012-04-13T08:57:55.000+0000

Exactly, that was corrected with ZF-11106

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.