Bug 52635 - Mixed Font Styles in one Cell
Summary: Mixed Font Styles in one Cell
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 3.8-dev
Hardware: Macintosh Mac OS X 10.5
: P2 enhancement (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-09 21:57 UTC by bscartine
Modified: 2012-02-09 22:47 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bscartine 2012-02-09 21:57:29 UTC
Is there a way to determine font style and other text formatting at the character level within a given Cell?
For example, in the Excel data I am parsing, some footnotes are indicated with the footnote symbol in superscript at the end of the cell content, however the getTypeOffSet() method returns a value of 0.

This is how I get the Font for a Cell:

            short fontIndex = cellStyle.getFontIndex();
            Font font = workbook.getFontAt(fontIndex);


I do find that if the first character in the cell is superscript, then the method Font.getTypeOffset() return value = 1.
Comment 1 Nick Burch 2012-02-09 22:47:48 UTC
Please ask usage questions on the user mailing list <http://poi.apache.org/mailinglists.html>, bugzilla is for bugs