You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Eric Hamacher <er...@enetrix.com> on 2008/06/03 16:59:05 UTC

bold italic setting not responsive

Hello again:

 

I have the following code:

 

        TextBox title = new TextBox();

        title.setAnchor(new java.awt.Rectangle(100, 83, 700, 100));

        title.setText("Your PCT Fitness Test Result Statistics");

        title.setHorizontalAlignment(TextBox.AlignLeft);

        

        RichTextRun rt = title.getTextRun().getRichTextRuns()[0];

        rt.setFontSize(36);

        rt.setBold(true);

        rt.setItalic(false);

        rt.setUnderlined(true);

        rt.setFontName("Arial Narrow");

        

        slide1.addShape(title);

 

 

But the text comes out as not bold and italic.  Is there something I'm
missing?

 

Regards,

Eric Hamacher

 

******************************

THIS EMAIL IS INTENDED ONLY FOR THE REVIEW OF THE ADDRESSEE(S), AND MAY
CONTAIN CONFIDENTIAL AND LEGALLY PRIVILEGED INFORMATION. INTERCEPTION,
COPYING, DISSEMINATION, OR OTHER USE BY OTHER THAN THE ADDRESSEE(S) IS
PROHIBITED AND MAY BE PENALIZED UNDER APPLICABLE PRIVACY LAWS. IF YOU
RECEIVED THIS EMAIL IN ERROR, PLEASE DELETE IT AND NOTIFY ME BY RETURN
EMAIL TO eric.hamacher@enetrix.com *******************************

 


Re: bold italic setting not responsive

Posted by Yegor Kozlov <ye...@dinom.ru>.
Your code works for me. The text comes out bold and underlined as set
in the code.

 What version of POI are you using?

Regards,
Yegor

> Hello again:

>  

> I have the following code:

>  

>         TextBox title = new TextBox();

>         title.setAnchor(new java.awt.Rectangle(100, 83, 700, 100));

>         title.setText("Your PCT Fitness Test Result Statistics");

>         title.setHorizontalAlignment(TextBox.AlignLeft);

>         

>         RichTextRun rt = title.getTextRun().getRichTextRuns()[0];

>         rt.setFontSize(36);

>         rt.setBold(true);

>         rt.setItalic(false);

>         rt.setUnderlined(true);

>         rt.setFontName("Arial Narrow");

>         

>         slide1.addShape(title);

>  

>  

> But the text comes out as not bold and italic.  Is there something I'm
> missing?

>  

> Regards,

> Eric Hamacher

>  

> ******************************

> THIS EMAIL IS INTENDED ONLY FOR THE REVIEW OF THE ADDRESSEE(S), AND MAY
> CONTAIN CONFIDENTIAL AND LEGALLY PRIVILEGED INFORMATION. INTERCEPTION,
> COPYING, DISSEMINATION, OR OTHER USE BY OTHER THAN THE ADDRESSEE(S) IS
> PROHIBITED AND MAY BE PENALIZED UNDER APPLICABLE PRIVACY LAWS. IF YOU
> RECEIVED THIS EMAIL IN ERROR, PLEASE DELETE IT AND NOTIFY ME BY RETURN
> EMAIL TO eric.hamacher@enetrix.com *******************************

>  



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