poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55802] Special Letters not exported correct
Date Wed, 29 Jan 2014 22:02:29 GMT

--- Comment #8 from Andreas Beeker <andreas.beeker@gmx.de> ---
The above example works ok in Libre Writer and Windows Wordpad, but MS Word
(Viewer) seem to need the hAnsi attribute to be set: [1]

So as a temporary workaround, you'll need to write to the xmlbeans directly:

run.setText("Ort, Datum der Erstellung: Kornelim√ľnster, am 8. November 2013");
run.setFontFamily("Times New Roman");
run.getCTR().getRPr().getRFonts().setHAnsi("Times New Roman");

[1] http://officeopenxml.com/WPtextFonts.php

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

View raw message