Class AWTFontResolver

java.lang.Object
com.openhtmltopdf.swing.AWTFontResolver
All Implemented Interfaces:
FontResolver

public class AWTFontResolver extends Object implements FontResolver
REsolves an AWT font instance from a list of CSS font families and characteristics.
  • Field Details

    • instanceHash

      private final Map<String,Font> instanceHash
      Map of concrete instances of fonts including size, weight, etc.
    • availableFontsHash

      private final Map<String,Font> availableFontsHash
      Map of base fonts, from which we can derive a concrete instance at the correct size, weight, etc. Note: The value is initially null until we need the given base font.
  • Constructor Details

    • AWTFontResolver

      public AWTFontResolver()
      Constructor
  • Method Details