/** * sets default font for notes * * @param PHPRtfLite_Font $font */ public static function setDefaultFont(PHPRtfLite_Font $font) { self::$_defaultFont = $font; }
/** * 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()); }
/** * gets default font for notes * * @return PHPRtfLite_Font */ public function getDefaultFontForNotes() { return PHPRtfLite_Footnote::getDefaultFont(); }