コード例 #1
0
ファイル: tcpdf.php プロジェクト: bmdevel/ezc
 /**
  * Calculate the rendered width of the current word
  *
  * Calculate the width of the passed word, using the currently set text
  * formatting options.
  *
  * @param string $word
  * @return float
  */
 public function calculateWordWidth($word)
 {
     if ($this->document === null) {
         $this->initialize();
     }
     return $this->document->GetStringWidth($word);
 }
コード例 #2
0
ファイル: tcpdf.php プロジェクト: jackalope/jr_cr_demo
 /**
  * Calculate the rendered width of the current word
  *
  * Calculate the width of the passed word, using the currently set text
  * formatting options.
  * 
  * @param string $word 
  * @return float
  */
 public function calculateWordWidth($word)
 {
     return $this->document->GetStringWidth($word);
 }