In PPT, when using POI to get the text fontname of textbox, it can not get the correct fontname of chinese text. searching for help, thanks.
Can you please upload a sample file that shows the issue, along with some code (ideally a unit test) that highlights the problem? Please also let us know what powerpoint things the font name is
Please see this bug https://issues.apache.org/bugzilla/show_bug.cgi?id=54880 It is similar to the current bug. I have attached the sample file with it.
Any chance you could provide a snippet of code (or even better a failing unit test) that shows the problem using that sample file? And also let us know what powerpoint thinks the font is?
I think the problem is in getFontName() method of RichTextRun.java. The same problem is being discussed with code here on stackoverflow http://stackoverflow.com/questions/2687522/problem-with-using-apache-poi-to-convert-ppt-to-image
In r1488403 I have added unit tests based on the sample file supplied in bug #54880. My unit test passes just fine... If you could please produce a unit test that does show the problem, that would help us with narrowing down the issue
Created attachment 30378 [details] File for GetFontName the fontname of chinese text is "隶书", but actually when I use getFontName of RichTextRun.java, the font name is "Times New Roman".
I have uploaded a PPT file (In reply to Abhinav Mathur from comment #2) > Please see this bug https://issues.apache.org/bugzilla/show_bug.cgi?id=54880 > > It is similar to the current bug. I have attached the sample file with it.
I have uploaded a PPT file as attachment (In reply to Nick Burch from comment #1) > Can you please upload a sample file that shows the issue, along with some > code (ideally a unit test) that highlights the problem? Please also let us > know what powerpoint things the font name is
Thanks for the sample file - this is fixed via r1722479