Forum


Replies: 4   Views: 3409
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

Posted by admin  · 11-04-2013 - 12:13

Hello,

You can use a custom font in new documents, but not in templates. I've added to be done in a future version of phpdocx.

Regards.

Posted by thehunter1605  · 11-04-2013 - 12:13

Hello,
We need to be able to add dynamic barcodes to our documents. How can we do this with docx templates? (I also paid for and submitted a ticket for this issue last week and haven't heard anything yet).

Posted by admin  · 11-04-2013 - 12:13

Hello,

Please contact us: http://www.phpdocx.com/contact

Regards.