I'm getting an odd problem when setting the font using RichTextRun. The text ê 
in Wingdings should appear as a downward arrow, but still appears as ê. Yet 
when I open the file in ppt and select the text, ppt says the font is 
Wingdings. If I change the font to bold and back to normal in ppt, it then 
appears correctly as an arrow, and so do all the other Wingdings characters in 
the ppt file. It's as if the setting made in poi isn't at first recognised by 
ppt but when you give it a nudge it is recognised.

 

 

cell.setText( "ê" );

RichTextRun rt2 = cell.getTextRun().getRichTextRuns()[0];

rt2.setFontName( "Wingdings" );

rt2.setFontSize( 18 );

Regards, Steve Barfield, Developer 
Application Services 

FUJITSU SERVICES 
Cavendish Road, Stevenage, Herts, SG1 2DY 

*       +44 (0) 870 234 8197  (Int: 744 48197) 
*       +44 (0) 7867 828474 
* <mailto:[email protected]> 
Web:    http://uk.fujitsu.com <http://uk.fujitsu.com/>  

Fujitsu Services Limited, Registered in England no 96056, Registered Office 22 
Baker Street, London, W1U 3BW 

This e-mail is only for the use of its intended recipient.  Its contents are 
subject to a duty of confidence and may be privileged.  Fujitsu Services does 
not guarantee that this e-mail has not been intercepted and amended or that it 
is virus-free.

 

 

 

Reply via email to