I would like to use something like a default font and default font size for my whole document. I am facing the issue that when I create a new paragraph the whole line is in "Times New Roman". I allready use TextRange but can´t fix my issue.
- Code: Select all
...
ParagraphFormat format = paragraph.getFormat();
format.setLeftIndent(0.0f);
paragraph.getFormat().getTabs().addTab(21.2f);
TextRange textRange = paragraph.appendText("\n\n" + Support.integerToRoman(topics) + ".\tKüchen\n");
textRange.getCharacterFormat().setFontName("OfficinaSansITCPro Book");
textRange.getCharacterFormat().setFontSize(11.0f);
...