Package org.jfree.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

    Modifier and Type Method Description
    String mapFont​(String family)
    Maps the specified font family name to an alternative, or else returns the same family name.
  • Method Details

    • 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).