Package com.aowagie.text.pdf
Class DefaultFontMapper
java.lang.Object
com.aowagie.text.pdf.DefaultFontMapper
- All Implemented Interfaces:
FontMapper
Default class to map awt fonts to BaseFont.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
A representation of BaseFont parameters. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a BaseFont which can be used to represent the given AWT Font(package private) DefaultFontMapper.BaseFontParameters
getBaseFontParameters
(String name) Looks for a BaseFont parameter associated with a name.
-
Field Details
-
aliases
Maps aliases to names. -
mapper
Maps names to BaseFont parameters.
-
-
Constructor Details
-
DefaultFontMapper
DefaultFontMapper()
-
-
Method Details
-
awtToPdf
Returns a BaseFont which can be used to represent the given AWT Font- Specified by:
awtToPdf
in interfaceFontMapper
- Parameters:
font
- the font to be converted- Returns:
- a BaseFont which has similar properties to the provided Font
-
getBaseFontParameters
Looks for a BaseFont parameter associated with a name.- Parameters:
name
- the name- Returns:
- the BaseFont parameter or
null
if not found.
-
getMapper
-
getAliases
-