Forum


Replies: 1   Views: 104
Font family and size change

Posted by fairshareitservices  · 05-04-2024 - 10:55

Hello,

Requirement - we want to change a sentence in bold within a paragraph. Placeholder is of text type. 

Issue - We are trying to add <b></b> tag for a sentence in a paragraph of a text-type placeholder. The sentence is change to bold. But rest of the paragraph get font family change to 'Microsoft Sans Serif' and size 11. But we have defined font 'Arial' and size 6. 

Sample Text - As NIFTY 50 TRI data is not available since inception of the scheme, additional benchmark performance is calculated using composite CAGR of NIFTY 50 PRI values from February 1, 1994 to June 29, 1999 and TRI values since June 30, 1999. For Performance of Direct Plan, refer page 118 to 124.<br> <b>^Past performance may or may not be sustained in future and is not a guarantee of any future returns.</b> Load is not taken into consideration for computation of performance.

Suggest a way to handle this. 

 

Posted by admin  · 05-04-2024 - 11:10

Hello,

Sorry, but we don't understand your issue and you don't mention what phpdocx methods you are using. Are you adding the HTML content using embedHTML, WordFragments or replacing a template placeholder? How have you set the Arial font family and 6 as the font size?

Please post the most simple PHP code that illustrates your task using phpdocx standalone. To insert a sample code you can use the last icon of the WYSIWYG editor. Or you can send to contact[at]phpdocx.com this sample code.

Regards.