Example usage for com.itextpdf.text FontFactory getFont

List of usage examples for com.itextpdf.text FontFactory getFont

Introduction

In this page you can find the example usage for com.itextpdf.text FontFactory getFont.

Prototype


public static Font getFont(final String fontname, final float size, final int style) 

Source Link

Document

Constructs a Font-object.

Usage

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));
}