Forum


Replies: 1   Views: 2554
How do i add font family on generic html elements using embedhtml
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 jrhilldev  · 11-04-2017 - 14:08

Hello,

I'm trying to add font-family styling to a range of html elements whilst using embedHTML. I can find docs on how to dot it using addText but not for embedHTML. I've tried it in the same way as done on addText as per docs. Is it possible to do it using embedHTML?

Posted by admin  · 11-04-2017 - 19:11

Hello,

You can use the font-family CSS style to set a font family. You can set it as CSS in the header or as inline style.

Regards.