Example usage for com.lowagie.text.pdf FontMapper awtToPdf

List of usage examples for com.lowagie.text.pdf FontMapper awtToPdf

Introduction

In this page you can find the example usage for com.lowagie.text.pdf FontMapper awtToPdf.

Prototype


public BaseFont awtToPdf(Font font);

Source Link

Document

Returns a BaseFont which can be used to represent the given AWT Font

Usage

From source file:nl.dykema.jxmlnote.report.pdf.PdfParagraph.java

License:Open Source License

protected Font getFont(java.awt.Font font) {
    FontMapper map = getFontMapper();
    BaseFont f = map.awtToPdf(font);
    return new Font(f);
}