List of usage examples for org.apache.pdfbox.pdmodel.font PDType1Font ZAPF_DINGBATS
PDType1Font ZAPF_DINGBATS
To view the source code for org.apache.pdfbox.pdmodel.font PDType1Font ZAPF_DINGBATS.
Click Source Link
From source file:org.sejda.impl.pdfbox.util.FontUtilsTest.java
License:Apache License
@Test public void testGetStandardType1Fontg() { assertEquals(PDType1Font.COURIER, FontUtils.getStandardType1Font(StandardType1Font.CURIER)); assertEquals(PDType1Font.COURIER_BOLD, FontUtils.getStandardType1Font(StandardType1Font.CURIER_BOLD)); assertEquals(PDType1Font.COURIER_BOLD_OBLIQUE, FontUtils.getStandardType1Font(StandardType1Font.CURIER_BOLD_OBLIQUE)); assertEquals(PDType1Font.COURIER_OBLIQUE, FontUtils.getStandardType1Font(StandardType1Font.CURIER_OBLIQUE)); assertEquals(PDType1Font.HELVETICA, FontUtils.getStandardType1Font(StandardType1Font.HELVETICA)); assertEquals(PDType1Font.HELVETICA_BOLD, FontUtils.getStandardType1Font(StandardType1Font.HELVETICA_BOLD)); assertEquals(PDType1Font.HELVETICA_BOLD_OBLIQUE, FontUtils.getStandardType1Font(StandardType1Font.HELVETICA_BOLD_OBLIQUE)); assertEquals(PDType1Font.HELVETICA_OBLIQUE, FontUtils.getStandardType1Font(StandardType1Font.HELVETICA_OBLIQUE)); assertEquals(PDType1Font.TIMES_BOLD, FontUtils.getStandardType1Font(StandardType1Font.TIMES_BOLD)); assertEquals(PDType1Font.TIMES_BOLD_ITALIC, FontUtils.getStandardType1Font(StandardType1Font.TIMES_BOLD_ITALIC)); assertEquals(PDType1Font.TIMES_ITALIC, FontUtils.getStandardType1Font(StandardType1Font.TIMES_ITALIC)); assertEquals(PDType1Font.TIMES_ROMAN, FontUtils.getStandardType1Font(StandardType1Font.TIMES_ROMAN)); assertEquals(PDType1Font.SYMBOL, FontUtils.getStandardType1Font(StandardType1Font.SYMBOL)); assertEquals(PDType1Font.ZAPF_DINGBATS, FontUtils.getStandardType1Font(StandardType1Font.ZAPFDINGBATS)); }
From source file:org.socialbiz.cog.WikiToPDF.java
License:Apache License
protected void startBullet(String line, int level) throws Exception { if (majorState != BULLET) { terminate();//from ww w . j av a 2s . c o m majorState = BULLET; } else { //nothing needed at end of bullet line } setPFont(); moveDown(3); //space before the paragraph paraTrailing = 3; //no space after bullets indent = 20 * level; newLine(); //gets you to the beginning of the line contentStream.moveTextPositionByAmount(-10, 0); contentStream.setFont(PDType1Font.ZAPF_DINGBATS, 6); contentStream.drawString("l"); contentStream.moveTextPositionByAmount(10, 0); contentStream.setFont(currentFont, currentLineSize); scanForStyle(line, skipSpaces(line, level)); }
From source file:src.view.controller.ViewTextAreaController.java
public void fillComboBoxTailleAndPolice() { for (int i = 5; i < 51; i++) { comboBoxTailleTextArea.getItems().add(i); }/*from w w w .ja va2s . c o m*/ comboBoxPoliceTextArea.getItems().addAll(PDType1Font.COURIER, PDType1Font.COURIER_BOLD, PDType1Font.COURIER_BOLD_OBLIQUE, PDType1Font.COURIER_OBLIQUE, PDType1Font.HELVETICA, PDType1Font.HELVETICA_BOLD, PDType1Font.HELVETICA_BOLD_OBLIQUE, PDType1Font.HELVETICA_OBLIQUE, PDType1Font.SYMBOL, PDType1Font.TIMES_BOLD, PDType1Font.TIMES_BOLD_ITALIC, PDType1Font.TIMES_ROMAN, PDType1Font.ZAPF_DINGBATS); comboBoxTailleTextArea.getSelectionModel().select(7); comboBoxPoliceTextArea.getSelectionModel().select(0); }