Forum


Replies: 4   Views: 3416
Change a variables font
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 thehunter1605  · 28-09-2012 - 17:40

I want to change the font for one specific variable. I have the regular font set for the document, but I want to change it on a variable. Is this possible? For example:

$docx->addTemplateVariable('test', $text, array('font'=> 'Century Gothic'));

Thanks for the help