0
How can i increase the printing font sizes for text in barcode and the size of the printed barcode
0
Hello,
For size, you can modify the $bci_size
in Products controller while for text size you can check the app/libraries/Tec_barcode.php
Thank you
0
I tried to change the $bci_size but couldnt get the desired size for the barcode. If you can please explain it would help. Also i am confused to change which parameters in the app/libraries/Tec_barcode.php. I am using Zebra Barcode Printer and the print comes very tiny so that barcode readers are not able to read
0
$bci_size = ($style == 10 || $style == 12 ? 50 : ($style == 14 || $style == 18 ? 30 : 20));
Above is the $bci_size. The label i use is 1.5 inch width and 1 inch height.
Barcode comes very tiny. Please let me know which parameters to be changed
0
Hello,
You can't set the width, only height, and it's in pixels.
Thank you
0
which parameter i need to change the height from the below
$bci_size = ($style == 10 || $style == 12 ? 50 : ($style == 14 || $style == 18 ? 30 : 20));
0
Hello,
The $style
is the template and how many barcode it has. You can change it to any number as you need $bci_size = 20
or $bci_size = 80
whatever height you need.
Thank you
0
Thank you very much for the information. I will try and revert. In the meanwhile regarding the font size, i find the following line in app/libraries/Tec_barcode.php :
$barcodeOptions = ['text' => $check['text'], 'barHeight' => $height, 'drawText' => $drawText, 'withChecksum' => $check['checksum'], 'withChecksumInText' => $check['checksum']]; //'fontSize' => 12, 'factor' => 1.5,
Can yu please help me where i can change the FONT and the FONT Size . Also i can see:
public function generate($text, $bcs = 'code128', $height = 50, $drawText = true, $get_be = false, $re = false)
is the $height = 50 has any thing to do with the barcode height
0
Hello,
I don't know the font but the font size, you can add it to barcodeOptions. The $height - 50 is the barcode height if it is not provided to the generate method, it's fallback option.
Thank you
We use Cookies
We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.