Hi, if I use the following:
// Default styles.
$style = array(
'fontSize' => 18,
'font' => 'Verdana',
'lineSpacing' => 240,
'spacingTop' => 0,
'spacingBottom' => 0,
);
$docx->createParagraphStyle('h1', array(
'bold' => TRUE,
'color' => '006283',
'caps' => TRUE,
'pageBreakBefore' => TRUE,
) + $style);
$docx->addHeading("My heading", 1, array('pStyle' => "h1"));
It doesn't apply the font size, nor the font family. The other styles are applied.
Why? If I pass the fontSize and font parameters to the options array directly, it works (although I would have to divide the font size by 2). Why?