![]() run.getCTR().getRPr().getRFonts(). I want to change it back to 'Arial', but after a lot of search only found the methods to set font of XWPFRun. OutputStream output = new FileOutputStream("output.docx") Create a document in WordPad and use it as your shortcut when launching the program to set a default font. In the empty.docx the default font is 'Arial', that means if you add any content they will inherit this font as long as you don't change the font manually.īut after I filled the content and write it to a new docx file,the default font was changed to 'Century'. While it is possible to change the default font in full-featured word processors such as Microsoft Word, this feature is sadly missing from WordPad. ![]() XWPFDocument document = new XWPFDocument(input) InputStream input = getClass().getClassLoader().getResourceAsStream("empty.docx") I began the writing with an empty word file named empty.docx, as following. ![]() ![]() Recently I encountered a problem of font, hope any body can give me some help. government and regulates all aspects of civil aviation in the country as well as over surrounding international waters.: 12, 16 Its powers include air traffic control, certification of personnel and aircraft, setting standards for airports, and protection of U.S. I'm a newbie of apache poi, and am using poi to write some data to docx file. The Federal Aviation Administration (FAA) is the largest transportation agency of the U.S. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |