예제 #1
0
파일: html2pdf.class.php 프로젝트: rzt/lms
 /**
  * add a font, see TCPDF function addFont
  *
  * @access public
  * @param string $family Font family. The name can be chosen arbitrarily. If it is a standard family name, it will override the corresponding font.
  * @param string $style Font style. Possible values are (case insensitive):<ul><li>empty string: regular (default)</li><li>B: bold</li><li>I: italic</li><li>BI or IB: bold italic</li></ul>
  * @param string $fontfile The font definition file. By default, the name is built from the family and style, in lower case with no spaces.
  * @return HTML2PDF $this
  * @see TCPDF::addFont
  */
 public function addFont($family, $style = '', $file = '')
 {
     $this->pdf->AddFont($family, $style, $file);
     return $this;
 }