What particular accent character did you use? Post it as \uxxxx.

I've just tried your code and it works for me. I can see both double
and single accents.

        SlideShow ppt = new SlideShow(new HSLFSlideShow("test7.ppt"));

        Slide s = ppt.getSlides()[0];

        TextBox tb = new TextBox();
        tb.setAnchor(new Rectangle(10,10,500,250));
        tb.setText("helloworld \u02DD\u00B4\u0300");
        tb.getTextRun().getRichTextRuns()[0].setFontName("Times New Roman");

        s.addShape(tb);
        FileOutputStream out = new FileOutputStream("slideshow.ppt");
        ppt.write(out);
        out.close();

 Yegor

> Hello

> I have tried unicode notation but it does not run. The problem comes from
> textbox insertion in an existing slideshow. Accent characters keep font name
> from Master Sheet.

> Sample code:
>         SlideShow ppt = new SlideShow(new
> HSLFSlideShow("template/test7.ppt"));
>                         
>         Slide s = ppt.getSlides()[0];
>                         
>         TextBox tb = new TextBox();
>         tb.setAnchor(new Rectangle(10,10,500,250));
>         tb.setText("helloworld eea");
>         tb.getTextRun().getRichTextRuns()[0].setFontName("Times New Roman");
>                         
>         s.addShape(tb);
>         FileOutputStream out = new
> FileOutputStream("report/slideshow.ppt");
>         ppt.write(out);
>         out.close();

> template :  http://www.nabble.com/file/p17693690/test7.ppt test7.ppt 

> Regards
> MG


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to