Community
Participate
Working Groups
Eclipse 3.6 RC2 I'm trying to use StyledText to create a simple Rich Text editor. In order to extract RTF from it, I'm using the clipboard workaround. I'm running into an issue when the style of the text is defined in the font (as opposed to fontStyle). It seems RTFWriter only writes styles if they are in fontStyle but ignores the ones in FontData.getStyle() I wonder if this is a bug or I am missing something.
This is bug. In StyledText$RTFWriter#writeHeader it ignores the font style when writting the font table (see that fd.getStyle() is never called). We could also fix the bug writeStyledLine when item.style != null. After 3.6, only very serious bugs can be included in the build for 3.6 at this point. Sorry Rodrigo.
Fixed in HEAD > 20100813