List of usage examples for com.itextpdf.text FontFactory getFont
public static Font getFont(final String fontname, final float size, final int style)
Font
-object. From source file:de.extra.xtt.util.pdf.PdfCreatorImpl.java
License:Apache License
private Chunk getChunkText(String text) { return new Chunk(text, FontFactory.getFont(fontNameStandard, fontSizeText, Font.NORMAL)); }
From source file:de.extra.xtt.util.pdf.PdfCreatorImpl.java
License:Apache License
private Chunk getChunkTextBold(String text) { return new Chunk(text, FontFactory.getFont(fontNameStandard, fontSizeText, Font.BOLD)); }
From source file:de.extra.xtt.util.pdf.PdfCreatorImpl.java
License:Apache License
private Chunk getChunkTextBoldWithReference(String text, String reference) { Chunk chunkText = new Chunk(text, FontFactory.getFont(fontNameStandard, fontSizeText, Font.BOLD)); // Referenz setzen chunkText.setLocalGoto(reference);//from ww w . ja va2 s. c o m // Unterstreichen chunkText.setUnderline(new BaseColor(0x00, 0x0f, 0xFF), 0.5f, 0.0f, -4f, 0.0f, PdfContentByte.LINE_CAP_BUTT); return chunkText; }
From source file:de.extra.xtt.util.pdf.PdfCreatorImpl.java
License:Apache License
private Chunk getChunkTextItalic(String text) { return new Chunk(text, FontFactory.getFont(fontNameStandard, fontSizeText, Font.ITALIC)); }
From source file:de.extra.xtt.util.pdf.PdfCreatorImpl.java
License:Apache License
private Phrase getPhraseText(String text) { return new Phrase(text, FontFactory.getFont(fontNameStandard, fontSizeText, Font.NORMAL)); }
From source file:de.extra.xtt.util.pdf.PdfCreatorImpl.java
License:Apache License
private Phrase getPhraseTextBold(String text) { return new Phrase(text, FontFactory.getFont(fontNameStandard, fontSizeText, Font.BOLD)); }
From source file:de.extra.xtt.util.pdf.PdfCreatorImpl.java
License:Apache License
private Phrase getPhraseChapter(String text) { return new Phrase(text, FontFactory.getFont(fontNameStandard, fontSizeChapter, Font.BOLD)); }
From source file:de.extra.xtt.util.pdf.PdfCreatorImpl.java
License:Apache License
private Phrase getPhraseChapterItalic(String text) { return new Phrase(text, FontFactory.getFont(fontNameStandard, fontSizeChapter, Font.BOLDITALIC)); }
From source file:de.extra.xtt.util.pdf.PdfCreatorImpl.java
License:Apache License
private Phrase getPhraseHeaderFooter(String text) { return new Phrase(text, FontFactory.getFont(fontNameStandard, fontSizeFooter, Font.NORMAL)); }
From source file:de.extra.xtt.util.pdf.PdfCreatorImpl.java
License:Apache License
private Paragraph getParagraphChapter(String text) { return new Paragraph(text, FontFactory.getFont(fontNameStandard, fontSizeChapter, Font.BOLD)); }