| java.lang.Object com.lowagie.text.pdf.DefaultFontMapper
All known Subclasses: com.lowagie.text.pdf.AsianFontMapper,
DefaultFontMapper | public class DefaultFontMapper implements FontMapper(Code) | | Default class to map awt fonts to BaseFont.
author: Paulo Soares (psoares@consiste.pt) |
Inner Class :public static class BaseFontParameters | |
awtToPdf | public BaseFont awtToPdf(Font font)(Code) | | Returns a BaseFont which can be used to represent the given AWT Font
Parameters: font - the font to be converted a BaseFont which has similar properties to the provided Font |
getBaseFontParameters | public BaseFontParameters getBaseFontParameters(String name)(Code) | | Looks for a BaseFont parameter associated with a name.
Parameters: name - the name the BaseFont parameter or null if not found. |
insertDirectory | public int insertDirectory(String dir)(Code) | | Inserts all the fonts recognized by iText in the
directory into the map. The encoding
will be BaseFont.CP1252 but can be
changed later.
Parameters: dir - the directory to scan the number of files processed |
pdfToAwt | public Font pdfToAwt(BaseFont font, int size)(Code) | | Returns an AWT Font which can be used to represent the given BaseFont
Parameters: font - the font to be converted Parameters: size - the desired point size of the resulting font a Font which has similar properties to the provided BaseFont |
putAlias | public void putAlias(String alias, String awtName)(Code) | | Maps an alias to a name.
Parameters: alias - the alias Parameters: awtName - the name |
putName | public void putName(String awtName, BaseFontParameters parameters)(Code) | | Maps a name to a BaseFont parameter.
Parameters: awtName - the name Parameters: parameters - the BaseFont parameter |
|
|