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:
  • Constructor Details

    • DefaultFontReplacer

      public DefaultFontReplacer()
    • DefaultFontReplacer

      public DefaultFontReplacer(String defaultFontName)
  • Method Details

    • replace

      public String replace(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 interface FontReplacing
      Parameters:
      fontName - the RTF font name
      fontFamily - the RTF font family
      Returns:
      the substitution font name