示例#1
0
 /**
  * constructor
  *
  * @param   PHPRtfLite              $rtf
  * @param   integer                 $type
  * @param   PHPRtfLite_Font         $font
  * @param   PHPRtfLite_ParFormat    $parFormat
  */
 public function __construct(PHPRtfLite $rtf, $type = null, PHPRtfLite_Font $font = null, PHPRtfLite_ParFormat $parFormat = null)
 {
     parent::__construct($rtf, $type, $font, $parFormat);
     $this->initListCharDefinition();
 }
示例#2
0
 /**
  * gets font index for list character
  *
  * @return string
  */
 protected function getListCharFontIndex()
 {
     if ($this->_font) {
         $fontFamily = $this->_font->getFontFamily();
         return $this->_rtf->getFontTable()->getFontIndex($fontFamily);
     }
     return parent::getListCharFontIndex();
 }