-
- All Known Implementing Classes:
StandardFontMapper
public interface FontMapper
An object that can (optionally) translate one font family name to an alternative. AFontMapper
is assigned to anSVGGraphics2D
instance. The default implementation will map Java logical font names to the equivalent SVG generic font names.- Since:
- 1.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
mapFont(java.lang.String family)
Maps the specified font family name to an alternative, or else returns the same family name.
-
-
-
Method Detail
-
mapFont
java.lang.String mapFont(java.lang.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
).
-
-