org.jfree.graphics2d.svg
Interface FontMapper

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 Summary
 String mapFont(String family)
          Maps the specified font family name to an alternative, or else returns the same family name.
 

Method Detail

mapFont

String mapFont(String family)
Maps the specified font family name to an alternative, or else returns the same family name.

Parameters:
family - the font family name (null not permitted).
Returns:
The same font family name or an alternative (never null).


Copyright © 2015. All rights reserved.