Hello,
The addHeading method adds some default styles that can't be overwriten using a paragraph style (these default styles are set as Word inline styles):
if (!isset($options['b'])) {
$options['b'] = 'on';
}
if (!isset($options['keepLines'])) {
$options['keepLines'] = 'on';
}
if (!isset($options['keepNext'])) {
$options['keepNext'] = 'on';
}
if (!isset($options['widowControl'])) {
$options['widowControl'] = 'on';
}
if (!isset($options['sz'])) {
$options['sz'] = max(15 - $level, 10);
}
if (!isset($options['font'])) {
$options['font'] = 'Cambria';
}
You need to set that values using the options of the addHeading method, or use the addText method with the headingLevel option that doesn't add default inline styles.
Regards.