- All Known Implementing Classes:
StandardFontMapper
public interface FontMapper
An object that can (optionally) translate one font family name to an
alternative. A
FontMapper is assigned to an
SVGGraphics2D instance. The default implementation will map
Java logical font names to the equivalent SVG generic font names.- Since:
- 1.5
-
Method Details
-
mapFont
Maps the specified font family name to an alternative, or else returns the same family name.- Parameters:
family- the font family name (nullnot permitted).- Returns:
- The same font family name or an alternative (never
null).
-