You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project, I need to export a DOCX file with the body text as "Avenir" with its "Light" weight. In some cases, I know it's referred to as "Avenir Light" or "Avenir-Light." However, every variation of the font style I try ends up resulting in Arial in the final Word Doc.
Any ideas on what I'm doing wrong?
Code
$phpWord->addFontStyle('cFStyle', array(
'name' => 'Avenir-Light'
));
[...]
$section->addText('Building a culture of engagement and philanthropy', 'cFStyle');
Results
Final Word 2007 Doc has all text set as Arial (though it shows "cFStyle" as the body style).
In my project, I need to export a DOCX file with the body text as "Avenir" with its "Light" weight. In some cases, I know it's referred to as "Avenir Light" or "Avenir-Light." However, every variation of the font style I try ends up resulting in Arial in the final Word Doc.
Any ideas on what I'm doing wrong?
Code
Results
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: