DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40143>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40143

           Summary: HSLF: RichTextRun returns wrong style attributes
           Product: POI
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSLF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


In some cases RichTextRun returns wrong style attributes.
Run the following fragment against the attached file and see that the font size
is wrong.
 RichTextRun says the size is 7 and it is wrong.


        Slide[] slide = ppt.getSlides();
        for (int i = 0; i < slide.length; i++) {
            TextRun[] txrun = slide[i].getTextRuns();
            for (int j = 0; j < txrun.length; j++) {
                TextRun run = txrun[j];
                RichTextRun[] rtf = run.getRichTextRuns();
                for (int k = 0; k < rtf.length; k++) {
                    System.out.println(rtf[k].getRawText() + ": " +
rtf[k].getFontSize());
                }
            }

        }

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/

Reply via email to