Example #1
0
 /**
  * sets default font for notes
  *
  * @param PHPRtfLite_Font $font
  */
 public static function setDefaultFont(PHPRtfLite_Font $font)
 {
     self::$_defaultFont = $font;
 }
Example #2
0
 /**
  * tests render
  */
 public function testRender()
 {
     $footnote = new PHPRtfLite_Footnote($this->_rtf, 'hello rtf world!');
     $footnote->render();
     $this->assertEquals('\\chftn {\\footnote\\pard\\plain \\lin283\\fi-283 \\fs20 {\\up6\\chftn}' . "\r\n" . 'hello rtf world!} ', $this->_rtf->getWriter()->getContent());
 }
Example #3
0
 /**
  * gets default font for notes
  *
  * @return PHPRtfLite_Font
  */
 public function getDefaultFontForNotes()
 {
     return PHPRtfLite_Footnote::getDefaultFont();
 }