https://bz.apache.org/bugzilla/show_bug.cgi?id=55307

Andreas Beeker <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #2 from Andreas Beeker <[email protected]> ---
Your bug report is a bit misleading, but I guess it's about reading the font 
size and that in POI 3.9 the font size was sometimes 0.
This seems to be fixed by now ... this was my test code:

@Test
public void bug55307() throws IOException {
    String files[] = { "bug55307-office.ppt", "bug55307-wps.ppt" };
    for (String file : files) {
        HSLFSlideShow ppt = open(file);
        for (HSLFSlide slide : ppt.getSlides()) {
            for (List<HSLFTextParagraph> paras : slide.getTextParagraphs()) {
                for (HSLFTextParagraph p : paras) {
                    for (HSLFTextRun r : p.getTextRuns()) {
                        String err = "Can't determine font size for 
\""+r.getRawText()+"\" on page "+slide.getSlideNumber();
                        assertNotEquals(err, r.getFontSize(), 0);
                        assertNotNull(r.getFontFamily());
                    }
                }
            }
        }
        ppt.close();
    }
}

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to