java.lang.Object
com.lowagie.text.pdf.DefaultFontMapper
- All Implemented Interfaces:
FontMapper
- Direct Known Subclasses:
AsianFontMapper
Deprecated.
Default class to map awt fonts to BaseFont.
- Author:
- Paulo Soares (psoares@consiste.pt)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.A representation of BaseFont parameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns a BaseFont which can be used to represent the given AWT FontDeprecated.getBaseFontParameters(String name) Deprecated.Looks for a BaseFont parameter associated with a name.Deprecated.intinsertDirectory(String dir) Deprecated.Inserts all the fonts recognized by iText in thedirectoryinto the map.voidinsertNames(Object[] allNames, String path) Deprecated.Inserts the names in this map.Deprecated.Returns an AWT Font which can be used to represent the given BaseFontvoidDeprecated.Maps an alias to a name.voidputName(String awtName, DefaultFontMapper.BaseFontParameters parameters) Deprecated.Maps a name to a BaseFont parameter.
-
Constructor Details
-
DefaultFontMapper
public DefaultFontMapper()Deprecated.
-
-
Method Details
-
awtToPdf
Deprecated.Returns a BaseFont which can be used to represent the given AWT Font- Specified by:
awtToPdfin interfaceFontMapper- Parameters:
font- the font to be converted- Returns:
- a BaseFont which has similar properties to the provided Font
-
pdfToAwt
Deprecated.Returns an AWT Font which can be used to represent the given BaseFont- Specified by:
pdfToAwtin interfaceFontMapper- Parameters:
font- the font to be convertedsize- the desired point size of the resulting font- Returns:
- a Font which has similar properties to the provided BaseFont
-
putName
Deprecated.Maps a name to a BaseFont parameter.- Parameters:
awtName- the nameparameters- the BaseFont parameter
-
putAlias
Deprecated.Maps an alias to a name.- Parameters:
alias- the aliasawtName- the name
-
getBaseFontParameters
Deprecated.Looks for a BaseFont parameter associated with a name.- Parameters:
name- the name- Returns:
- the BaseFont parameter or
nullif not found.
-
insertNames
Deprecated.Inserts the names in this map.- Parameters:
allNames- the returned value of callingBaseFont.getAllFontNames(String, String, byte[])path- the full path to the font
-
insertDirectory
Deprecated.Inserts all the fonts recognized by iText in thedirectoryinto the map. The encoding will beBaseFont.CP1252but can be changed later.- Parameters:
dir- the directory to scan- Returns:
- the number of files processed
-
getMapper
Deprecated. -
getAliases
Deprecated.
-