// step 4:
// the 14 standard fonts in PDF: do not use this Font constructor!
// this is for demonstration purposes only, use FontFactory!
LwgFont[] fonts = new LwgFont[14];
fonts[0] = new LwgFont(LwgFont.COURIER, LwgFont.DEFAULTSIZE, LwgFont.NORMAL);
fonts[1] = new LwgFont(LwgFont.COURIER, LwgFont.DEFAULTSIZE, LwgFont.ITALIC);
fonts[2] = new LwgFont(LwgFont.COURIER, LwgFont.DEFAULTSIZE, LwgFont.BOLD);
fonts[3] = new LwgFont(LwgFont.COURIER, LwgFont.DEFAULTSIZE, LwgFont.BOLD | LwgFont.ITALIC);
fonts[4] = new LwgFont(LwgFont.HELVETICA, LwgFont.DEFAULTSIZE, LwgFont.NORMAL);
fonts[5] = new LwgFont(LwgFont.HELVETICA, LwgFont.DEFAULTSIZE, LwgFont.ITALIC);
fonts[6] = new LwgFont(LwgFont.HELVETICA, LwgFont.DEFAULTSIZE, LwgFont.BOLD);
fonts[7] = new LwgFont(LwgFont.HELVETICA, LwgFont.DEFAULTSIZE, LwgFont.BOLDITALIC);
fonts[8] = new LwgFont(LwgFont.TIMES_ROMAN, LwgFont.DEFAULTSIZE, LwgFont.NORMAL);
fonts[9] = new LwgFont(LwgFont.TIMES_ROMAN, LwgFont.DEFAULTSIZE, LwgFont.ITALIC);
fonts[10] = new LwgFont(LwgFont.TIMES_ROMAN, LwgFont.DEFAULTSIZE, LwgFont.BOLD);
fonts[11] = new LwgFont(LwgFont.TIMES_ROMAN, LwgFont.DEFAULTSIZE, LwgFont.BOLDITALIC);
fonts[12] = new LwgFont(LwgFont.SYMBOL);
fonts[13] = new LwgFont(LwgFont.ZAPFDINGBATS);
// add the content
for (int i = 0; i < 14; i++) {
document.add(new Paragraph("quick brown fox jumps over the lazy dog", fonts[i]));
}
} catch (DocumentException de) {