public static function isImagickLoaded() { return extension_loaded('imagick'); }
public function __construct() { if (!EscposImage::isImagickLoaded()) { throw new Exception("ImagePrintBuffer requires the imagick extension"); } $this->font = null; $this->fontSize = 24; }