Flying Saucer Project Release ${app.version}

org.xhtmlrenderer.context
Class AWTFontResolver

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

public class AWTFontResolver
extends java.lang.Object
implements FontResolver

Description of the Class

Author:
Joshua Marinacci

Constructor Summary
AWTFontResolver()
          Constructor for the FontResolverTest object
 
Method Summary
 void flushCache()
           
 FSFont resolveFont(SharedContext renderingContext, FontSpecification spec)
           
 FSFont resolveFont(SharedContext ctx, java.lang.String[] families, float size, IdentValue weight, IdentValue style, IdentValue variant)
          Description of the Method
 void setFontMapping(java.lang.String name, java.awt.Font font)
          Sets the fontMapping attribute of the FontResolver object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWTFontResolver

public AWTFontResolver()
Constructor for the FontResolverTest object

Method Detail

flushCache

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

resolveFont

public FSFont resolveFont(SharedContext ctx,
                          java.lang.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(java.lang.String name,
                           java.awt.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

Flying Saucer Project Release ${app.version}

Flying Saucer Project Home