Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for non-standard fonts and weights? #611

Open
chrisfullman opened this issue Sep 2, 2015 · 0 comments
Open

Support for non-standard fonts and weights? #611

chrisfullman opened this issue Sep 2, 2015 · 0 comments

Comments

@chrisfullman
Copy link

chrisfullman commented Sep 2, 2015

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! We accept bounties via Bountysource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant