Package com.scroogexhtml.fonts
Class DefaultFontReplacer
java.lang.Object
com.scroogexhtml.fonts.DefaultFontReplacer
- All Implemented Interfaces:
FontReplacing
,Serializable
A default implementation of the FontReplacing interface.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreplace
(String fontName, FontFamily fontFamily) The converter calls this method for each font name in the RTF font table, passing in the RTF font name and the font type.
-
Constructor Details
-
DefaultFontReplacer
public DefaultFontReplacer() -
DefaultFontReplacer
-
-
Method Details
-
replace
Description copied from interface:FontReplacing
The converter calls this method for each font name in the RTF font table, passing in the RTF font name and the font type.- Specified by:
replace
in interfaceFontReplacing
- Parameters:
fontName
- the RTF font namefontFamily
- the RTF font family- Returns:
- the substitution font name
-