Loading...

poi-user@jakarta.apache.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

HSLF Bug possibly evgeny.arseev Wed Jun 25 12:05:08 2008

Hi

When creating PPT-file with HSLF there is only one possibility to create
not BOLD text - the has to be Italic or Underlined.
If text is not italic and not underlined, then there is no possibility
to create not bold text. 
Is this a bug?
For example, this code creates bold text, but it should not:

//TextBox TextBox txt = new TextBox(); 
txt.setText("Hello, World!");
 txt.setAnchor(new java.awt.Rectangle(300, 100, 300, 50)); 
//use RichTextRun to work with the text format 
RichTextRun rt = txt.getTextRun().getRichTextRuns()[0];
rt.setFontSize(32); 
rt.setFontName("Arial");
rt.setBold(false); 
rt.setItalic(false); 
rt.setUnderlined(false); 
rt.setFontColor(Color.red); 
rt.setAlignment(TextBox.AlignRight); 

PS: I am using POI 3.0.2. 
Regards
Evgeny Arseev