コード例 #1
0
ファイル: tcpdf.php プロジェクト: bmdevel/ezc
 /**
  * Draw word at given position
  *
  * Draw the given word at the given position using the currently set text
  * formatting options.
  *
  * The coordinate specifies the left bottom edge of the words bounding box.
  *
  * @param float $x
  * @param float $y
  * @param string $word
  * @return void
  */
 public function drawWord($x, $y, $word)
 {
     $size = ezcDocumentPcssMeasure::create($this->currentFont['size'] . 'pt')->get();
     $this->document->setXY($x, (double) round($y - $size, 4));
     $this->document->Write($size, $word);
 }
コード例 #2
0
ファイル: tcpdf.php プロジェクト: jackalope/jr_cr_demo
 /**
  * Draw word at given position
  *
  * Draw the given word at the given position using the currently set text
  * formatting options.
  * 
  * @param float $x 
  * @param float $y 
  * @param string $word 
  * @return void
  */
 public function drawWord($x, $y, $word)
 {
     $this->document->setXY($x, $y);
     $this->document->Write($this->pixelToMm($this->currentFont['size']), $word);
 }