Thanks for your quick response.
I have tried to use setDocumentDefaultStyles but it didn't work.
my updated code:
$docx = new \Phpdocx\Create\CreateDocxFromTemplate($tempFilePath);
$style = array(
'color' => 'ff0000',
'fontSize' => 14,
'font'=>'Arial'
);
$docx->setDocumentDefaultStyles($style);
$docx->createDocx($new_file_path);
I have opened the CreateDocxFromTemplate.php class and could not find the method setDocumentDefaultStyles but I found it in CreateDocx which is not helpful in my case because I have to modify the font of the template.
Thanks & Regards