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).
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26394375-support-for-non-standard-fonts-and-weights?utm_campaign=plugin&utm_content=tracker%2F323108&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F323108&utm_medium=issues&utm_source=github).
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