Class StandardFontMapper
java.lang.Object
org.jfree.graphics2d.svg.StandardFontMapper
- All Implemented Interfaces:
FontMapper
A default implementation of the
FontMapper interface. This
implementation will map the Java logical fonts to equivalent SVG generic
fonts. You can add your own mappings if you need to.- Since:
- 1.5
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance with mappings for the Java logical fonts. -
Method Summary
Modifier and TypeMethodDescriptionReturns the mapped (alternate) font family name.Maps the specified font family name to an alternative, or else returns the same family name.voidAdds a font family mapping (if the specified alternate isnullit has the effect of clearing any existing mapping).
-
Constructor Details
-
StandardFontMapper
public StandardFontMapper()Creates a new instance with mappings for the Java logical fonts.
-
-
Method Details
-
get
-
put
-
mapFont
Maps the specified font family name to an alternative, or else returns the same family name.- Specified by:
mapFontin interfaceFontMapper- Parameters:
family- the font family name (nullnot permitted).- Returns:
- The same font family name or an alternative (never
null).
-