public class DefaultFontMapper extends java.lang.Object implements FontMapper
PDFGraphics2D
implementation.
PDFHints.KEY_DRAW_STRING_TYPE
.
This can be useful, for example, if you need to display characters (such
as the euro symbol) that are not supported by the PDF built-in fonts.Constructor and Description |
---|
DefaultFontMapper()
Creates a new instance with default mappings.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
mapToBaseFont(java.awt.Font f)
Returns the name of the PDF built-in font that should be used in place
of the specified AWT/Java2D font.
|
public DefaultFontMapper()
public java.lang.String mapToBaseFont(java.awt.Font f)
FontMapper
mapToBaseFont
in interface FontMapper
f
- the font.