Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » pdf » [javadoc | source]
com.lowagie.text.pdf
public class: DefaultFontMapper [javadoc | source]
java.lang.Object
   com.lowagie.text.pdf.DefaultFontMapper

All Implemented Interfaces:
    FontMapper

Direct Known Subclasses:
    AsianFontMapper

Default class to map awt fonts to BaseFont.
Nested Class Summary:
public static class  DefaultFontMapper.BaseFontParameters  A representation of BaseFont parameters. 
Method from com.lowagie.text.pdf.DefaultFontMapper Summary:
awtToPdf,   getAliases,   getBaseFontParameters,   getMapper,   insertDirectory,   insertNames,   pdfToAwt,   putAlias,   putName
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.pdf.DefaultFontMapper Detail:
 public BaseFont awtToPdf(Font font) 
    Returns a BaseFont which can be used to represent the given AWT Font
 public HashMap getAliases() 
 public DefaultFontMapper.BaseFontParameters getBaseFontParameters(String name) 
    Looks for a BaseFont parameter associated with a name.
 public HashMap getMapper() 
 public int insertDirectory(String dir) 
    Inserts all the fonts recognized by iText in the directory into the map. The encoding will be BaseFont.CP1252 but can be changed later.
 public  void insertNames(Object[] allNames,
    String path) 
    Inserts the names in this map.
 public Font pdfToAwt(BaseFont font,
    int size) 
    Returns an AWT Font which can be used to represent the given BaseFont
 public  void putAlias(String alias,
    String awtName) 
    Maps an alias to a name.
 public  void putName(String awtName,
    DefaultFontMapper.BaseFontParameters parameters) 
    Maps a name to a BaseFont parameter.