Mike42\Escpos\Printer::setTextSize PHP 메소드

setTextSize() 공개 메소드

Set the size of text, as a multiple of the normal size.
public setTextSize ( integer $widthMultiplier, integer $heightMultiplier )
$widthMultiplier integer Multiple of the regular height to use (range 1 - 8)
$heightMultiplier integer Multiple of the regular height to use (range 1 - 8)
    public function setTextSize($widthMultiplier, $heightMultiplier)
    {
        self::validateInteger($widthMultiplier, 1, 8, __FUNCTION__);
        self::validateInteger($heightMultiplier, 1, 8, __FUNCTION__);
        $c = pow(2, 4) * ($widthMultiplier - 1) + ($heightMultiplier - 1);
        $this->connector->write(self::GS . "!" . chr($c));
    }