registerFont() public method

registers the font in color table and font table
public registerFont ( PHPRtfLite_Font $font )
$font PHPRtfLite_Font
コード例 #1
0
ファイル: FormField.php プロジェクト: sbogdanov108/db_to_text
 /**
  * constructor
  *
  * @param   PHPRtfLite              $rtf
  * @param   PHPRtfLite_Font         $font
  * @param   PHPRtfLite_ParFormat    $parFormat
  */
 public function __construct(PHPRtfLite $rtf, PHPRtfLite_Font $font = null, PHPRtfLite_ParFormat $parFormat = null)
 {
     $this->_rtf = $rtf;
     $this->_font = $font;
     $this->_parFormat = $parFormat;
     if ($font) {
         $this->_rtf->registerFont($font);
     }
 }
コード例 #2
0
ファイル: Element.php プロジェクト: naivists/PHPUnit
 /**
  * constructor
  *
  * @param PHPRtfLite            $rtf
  * @param string                $text
  * @param PHPRtfLite_Font       $font
  * @param PHPRtfLite_ParFormat  $parFormat
  */
 public function __construct(PHPRtfLite $rtf, $text, PHPRtfLite_Font $font = null, PHPRtfLite_ParFormat $parFormat = null)
 {
     if ($font) {
         $rtf->registerFont($font);
     }
     if ($parFormat) {
         $rtf->registerParFormat($parFormat);
     }
     $this->_rtf = $rtf;
     $this->_text = $text;
     $this->_font = $font;
     $this->_parFormat = $parFormat;
 }
コード例 #3
0
ファイル: Footnote.php プロジェクト: naivists/PHPUnit
 /**
  * sets font
  *
  * @param PHPRtfLite_Font $font
  */
 public function setFont(PHPRtfLite_Font $font)
 {
     $this->_rtf->registerFont($font);
     $this->_font = $font;
 }