Looks like a bug. Setting any of bold/italic/underline to false causes
the text to be bold. I will look into it later.
Yegor
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]