poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yegor Kozlov <ye...@dinom.ru>
Subject Re: HSLF Bug possibly
Date Fri, 08 Feb 2008 13:53:17 GMT
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: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message