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

fontsize of the Math formula seems not work well #1232

Open
1 task done
YenseanHub opened this issue Dec 5, 2023 · 0 comments · May be fixed by #1364
Open
1 task done

fontsize of the Math formula seems not work well #1232

YenseanHub opened this issue Dec 5, 2023 · 0 comments · May be fixed by #1364

Comments

@YenseanHub
Copy link

YenseanHub commented Dec 5, 2023

NPOI Version

2.5.6

File Type

  • DOCX

Issue Description

the fontsize of the Math formula seems not work well

 XWPFParagraph p3 = m_Doc.CreateParagraph();
 p3.Alignment = ParagraphAlignment.CENTER;
 
 var s = p3.CreateRun();
 s.SetText("asdadada");
 s.FontSize = 50;

 XWPFOMath math = p3.CreateOMath();
 var a = math.CreateRun();
 a.SetFontFamily("宋体", FontCharRange.Ascii);
 a.FontSize = 50;
 a.SetText("a");

the fontsize of the normal paragraph content works well,
but the fontsize of the math still the default size

微信截图_20231205141214

@YenseanHub YenseanHub added the bug label Dec 5, 2023
@tonyqus tonyqus added this to the NPOI 2.7.2 milestone May 3, 2024
dcjxdd123 pushed a commit to dcjxdd123/xddnpoi that referenced this issue Jun 6, 2024
@dcjxdd123 dcjxdd123 linked a pull request Jun 6, 2024 that will close this issue
@tonyqus tonyqus modified the milestones: NPOI 2.7.2, NPOI 2.7.1 Jun 7, 2024
@tonyqus tonyqus added the docx label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants