public function __construct(\Jaguar\Color\ColorInterface $color = null)
 {
     parent::__construct($color);
     $this->setLineThickness(1);
 }
Пример #2
0
 /**
  * construct new text object
  *
  * @param type                         $string
  * @param \Jaguar\Coordinate           $coordinate
  * @param \Jaguar\Color\ColorInterface $color
  */
 public function __construct($string = null, Coordinate $coordinate = null, ColorInterface $color = null)
 {
     parent::__construct($color);
     $this->setString($string)->setCoordinate($coordinate === null ? new Coordinate() : $coordinate)->setAngle(0)->setLineSpacing(1.0)->setFont(new Font(Util::getResourcePath('Fonts/arial.ttf')))->setFontSize(12)->setDrawer(new Plain());
 }