Package org.jfree.pdf

Class DefaultFontMapper

java.lang.Object
org.jfree.pdf.DefaultFontMapper
All Implemented Interfaces:
FontMapper

public class DefaultFontMapper
extends Object
implements FontMapper
A class that can be used to map AWT/Java2D fonts to PDF built-in font names. This is a very minimal way to support fonts in this PDFGraphics2D implementation.

Note that there is an option to draw text as vector graphics which you can specify using the rendering hint 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.