Class AWTFontResolver

java.lang.Object
org.xhtmlrenderer.context.AWTFontResolver
All Implemented Interfaces:
FontResolver

public class AWTFontResolver extends Object implements FontResolver
Description of the Class
Author:
Joshua Marinacci
  • Constructor Details

    • AWTFontResolver

      public AWTFontResolver()
      Constructor for the FontResolverTest object
  • Method Details

    • flushCache

      public void flushCache()
      Specified by:
      flushCache in interface FontResolver
    • resolveFont

      public FSFont resolveFont(SharedContext ctx, String[] families, float size, IdentValue weight, IdentValue style, IdentValue variant)
      Description of the Method
      Parameters:
      ctx -
      families - PARAM
      size - PARAM
      weight - PARAM
      style - PARAM
      variant - PARAM
      Returns:
      Returns
    • setFontMapping

      public void setFontMapping(String name, Font font)
      Sets the fontMapping attribute of the FontResolver object
      Parameters:
      name - The new fontMapping value
      font - The new fontMapping value
    • resolveFont

      public FSFont resolveFont(SharedContext renderingContext, FontSpecification spec)
      Specified by:
      resolveFont in interface FontResolver