java.lang.Object
com.lowagie.text.pdf.DefaultFontMapper
imagingbook.pdf.CoreFontMapper
- All Implemented Interfaces:
FontMapper
An implementation of
FontMapper
that substitutes unknown fonts with embedded core fonts (Type1).-
Nested Class Summary
Nested classes/interfaces inherited from class com.lowagie.text.pdf.DefaultFontMapper
DefaultFontMapper.BaseFontParameters
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addKeyMonospaced
(String key) Adds the logical name of a font to be treated as monospaced.boolean
addKeySerif
(String key) Adds the logical name of a font to be treated as a serif font.Methods inherited from class com.lowagie.text.pdf.DefaultFontMapper
getAliases, getBaseFontParameters, getMapper, insertDirectory, insertNames, putAlias, putName
-
Field Details
-
VERBOSE
-
-
Constructor Details
-
CoreFontMapper
public CoreFontMapper()
-
-
Method Details
-
addKeyMonospaced
Adds the logical name of a font to be treated as monospaced. All such fonts will be replaced byCourier
in the PDF.- Parameters:
key
- the logical font name- Returns:
- true if insertion was successful
-
addKeySerif
Adds the logical name of a font to be treated as a serif font. All such fonts will be replaced byTimes
in the PDF.- Parameters:
key
- the logical font name- Returns:
- true if insertion was successful
-
awtToPdf
- Specified by:
awtToPdf
in interfaceFontMapper
- Overrides:
awtToPdf
in classDefaultFontMapper
-
pdfToAwt
- Specified by:
pdfToAwt
in interfaceFontMapper
- Overrides:
pdfToAwt
in classDefaultFontMapper
-