-
Notifications
You must be signed in to change notification settings - Fork 648
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
Add new 'lang' text option to enable Chinese Word font_face to take effect #174
Comments
Hi @eddyclock , I've checked in changes to add a new var pptx = new PptxGenJS();
var slide = pptx.addNewSlide();
//chinese word with chinese font
slide.addText('你好', { x:0.5, y:1, w:3, font_size:50 , font_face:'微軟正黑體', lang:'zh-TW' });
pptx.save('PptxGenJS-ChineseWord-Font-微軟正黑體'); |
HI @gitbrent Sorry for long waiting. It is not correct. I have tried to generate XML file from PowerPoint. if lang = "zh-TW", I found that there are some key factors as below: <a:rPr lang="zh-TW" altLang="en-US" ....> Hope this can help. |
Hi @eddyclock , Thanks for letting me know. Both 'ea' and 'cs' are set to charset="-120" now. |
Hi @gitbrent , I do not know pptx xml,so i tried to modify the xml for
And at label:ea must be before label:cs,otherwise use office 2007 still is fails. Is this possible only for Simplified Chinese. |
Hi @LawlietNot, I've re-ordered the one place where cs was before ea. Let me know if this fixes the issue. Also, would you mind creating a simple "hello world" PPT using 2007 and attach it? I'd like to see what may be causing these 2007 issues. Thanks! |
Hi @LawlietNot |
Hi @gitbrent ,
I have added some text with Chinese word "你好" with Chinese font_face = 微軟正黑體 but the chinese cannot reflect correctly.
I tried to add new option with "zh-tw"
Just my small input.
Eddy Kwok
The text was updated successfully, but these errors were encountered: