Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/longsview/escpos-php into…
Browse files Browse the repository at this point in the history
… 114-barcode-width
  • Loading branch information
mike42 committed Apr 23, 2016
2 parents 1707943 + a368cad commit 43c1cd0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Mike42/Escpos/Printer.php
Expand Up @@ -625,7 +625,17 @@ public function setBarcodeHeight($height = 8)
self::validateInteger($height, 1, 255, __FUNCTION__);
$this -> connector -> write(self::GS . "h" . chr($height));
}


/**
* Set barcode width.
*
* @param int $width Width in dots. If not specified, 2 will be used.
*/
public function setBarcodeWidth($width = 2)
{
self::validateInteger($width, 1, 255, __FUNCTION__);
$this -> connector -> write(self::GS . "w" . chr($width));
}

/**
* Set the position for the Human Readable Interpretation (HRI) of barcode characters.
Expand Down

0 comments on commit 43c1cd0

Please sign in to comment.