Esempio n. 1
0
 /**
  * @param \Imagine\Draw\DrawerInterface $drawer
  * @param array $commandOptions
  * @return \Imagine\Draw\DrawerInterface
  */
 protected function drawText(\Imagine\Draw\DrawerInterface $drawer, array $commandOptions)
 {
     $string = $commandOptions['string'];
     $font = $this->parseFont($commandOptions['font']);
     $position = $this->parsePoint($commandOptions['position']);
     $angle = (int) $commandOptions['angle'];
     return $drawer->text($string, $font, $position, $angle);
 }