poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yegor Kozlov <ye...@dinom.ru>
Subject Re: Generating ppt through java
Date Fri, 01 Aug 2008 07:26:14 GMT
I Java2D advanced font properties (underline, strikethrough, etc.) are set via AttrtibutedString:

AttrtibutedString at = new AttrtibutedString("Hello, World");
at.addAttribute(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_ON);
graphics.drawString(at.getIterator(), float x, float y)

Unfortunately, HSLF does not yet support this functionality.

Yegor

> Hi Yegor,
> 
> I could set color and font (bold, italic) in PPGraphics2D and was able to
> display it.
> However How to display underlined text  using PPGraphics2D.drawString(String
> s,float x ,float y) ?
> 
> 
> Regards,
> Dinakara


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message