Interface FontMapper

All Known Implementing Classes:
DefaultFontMapper

interface FontMapper
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 Summary

    Modifier and Type
    Method
    Description
    awtToPdf(Font font)
    Returns a BaseFont which can be used to represent the given AWT Font
  • Method Details

    • awtToPdf

      BaseFont awtToPdf(Font font)
      Returns a BaseFont which can be used to represent the given AWT Font
      Parameters:
      font - the font to be converted
      Returns:
      a BaseFont which has similar properties to the provided Font