You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by Abhinav Mathur <ab...@adobe.com> on 2013/05/02 08:00:36 UTC

Regarding Bug ID 54880

Hi Devs,

I have reported a bug [0]. While trying to debug it , I came across method getFontName() in RichTextRun.java.
While seeing the code for this method, I found that , for a rich text run, we try to deduce the font name based on font used by parent, if there is not font name for a TextRun.

This implementation is causing problems in case of Chinese characters as I have mentioned in bug. I would like to propose to change this method to return, null, if no font is found for TextRun.

Kindly let me know  your thoughts on the same.

Regards,
Abhinav Mathur

[0] https://issues.apache.org/bugzilla/show_bug.cgi?id=54880


Proposed getFontName() method

       public String getFontName() {
              return _fontname;
        }