Package com.scroogexhtml.fonts
Class DefaultFontReplacer
- java.lang.Object
-
- com.scroogexhtml.fonts.DefaultFontReplacer
-
- All Implemented Interfaces:
FontReplacing
,Serializable
public class DefaultFontReplacer extends Object implements FontReplacing, Serializable
A default implementation of the FontReplacing interface.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultFontReplacer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
replace(ScroogeXHTMLBase converter, 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.
-
-
-
Method Detail
-
replace
public String replace(ScroogeXHTMLBase converter, String fontName, FontFamily fontFamily)
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:
converter
- the converter instancefontName
- the RTF font namefontFamily
- the RTF font family- Returns:
- the substitution font name TODO(mj) move to ConversionConfiguration
-
-