Bug 47148

Summary: XWPFRun.setFontFamily does not work with chars above 127.
Product: POI Reporter: luzifer
Component: XWPFAssignee: POI Developers List <dev>
Severity: normal    
Priority: P2    
Version: 3.5-dev   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description luzifer 2009-05-04 06:30:46 UTC
XWPFDocument doc = new XWPFDocument();
XWPFParagraph paragraph = doc.createParagraph();
XWPFRun run = paragraph.createRun();
run.setText("abc éàèô efg");
run.setFontSize(10);      //NullPointerException if ommitted

not only set the Ascii Font, but also set the HAnsi font. (CTFonts.setHAnsi)
Comment 1 Mark Murphy 2016-10-05 03:20:16 UTC
This works for me. Please try using the most recent version of POI, and if you continue having problems, open a new issue.