Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » pdf » [javadoc | source]
com.lowagie.text.pdf
public interface: FontMapper [javadoc | source]

All Known Implementing Classes:
    AsianFontMapper, DefaultFontMapper

A FontMapper implementation handles mappings between AWT Fonts and PDF fonts. An interface is used instead of a fixed class because there isn't an exact correlation between the font types, so each application is free to define a mapping which is appropriate for it.
Method from com.lowagie.text.pdf.FontMapper Summary:
awtToPdf,   pdfToAwt
Method from com.lowagie.text.pdf.FontMapper Detail:
 public BaseFont awtToPdf(Font font)
    Returns a BaseFont which can be used to represent the given AWT Font
 public Font pdfToAwt(BaseFont font,
    int size)
    Returns an AWT Font which can be used to represent the given BaseFont