poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47148] New: XWPFRun.setFontFamily does not work with chars above 127.
Date Mon, 04 May 2009 13:30:47 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47148

           Summary: XWPFRun.setFontFamily does not work with chars above
                    127.
           Product: POI
           Version: 3.5-dev
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XWPF
        AssignedTo: dev@poi.apache.org
        ReportedBy: luzifer@internet.lu


XWPFDocument doc = new XWPFDocument();
XWPFParagraph paragraph = doc.createParagraph();
XWPFRun run = paragraph.createRun();
run.setText("abc éàèô efg");
run.setFontSize(10);      //NullPointerException if ommitted
run.setFontFamily("Arial");


MyWorkaround:
not only set the Ascii Font, but also set the HAnsi font. (CTFonts.setHAnsi)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message