예제 #1
0
파일: TPLEXTENDED.php 프로젝트: artack/fpdi
 /**
  * See FPDF/TCPDF-Documentation ;-)
  */
 public function SetFont($family, $style = '', $size = 0)
 {
     if (is_subclass_of($this, 'TCPDF')) {
         $args = func_get_args();
         return call_user_func_array(array($this, 'TCPDF::SetFont'), $args);
     }
     parent::SetFont($family, $style, $size);
     $fontkey = $this->FontFamily . $this->FontStyle;
     if ($this->_intpl) {
         $this->_res['tpl'][$this->tpl]['fonts'][$fontkey] =& $this->fonts[$fontkey];
     } else {
         $this->_res['page'][$this->page]['fonts'][$fontkey] =& $this->fonts[$fontkey];
     }
 }