Forum


Replies: 2   Views: 775
Createliststyle ignores fontsize option, changes to my default.
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by skwirrel  · 24-05-2022 - 08:25

What do we have to do, that this does not ignores the fontsize option?

 

$this->docx->createListStyle('inclusion', [0 => [
        'type'     => 'decimal', // ordered list
        'align'    => 'right',   // align numbers to the right
        'fontSize' => 10,        // this seems to be ignored
        'font'     => 'Calibri',
        'suff'     => 'space',   // space between list number and text
    ]]
);
$this->docx->addList($list, 'inclusion');