Пример #1
0
 /**
  * Calculates text size, in points
  *
  * @param string $text the text to be sized
  * @param string $font the desired font
  * @param float  $size the desired font size
  * @param float  $spacing word spacing, if any
  * @return float
  */
 static function get_text_width($text, $font, $size, $spacing = 0)
 {
     return self::$_pdf->get_text_width($text, $font, $size, $spacing);
 }