java.lang.Object
org.xhtmlrenderer.context.AWTFontResolver
- All Implemented Interfaces:
FontResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static FontcreateFont(SharedContext ctx, Font root_font, float size, IdentValue weight, IdentValue style, IdentValue variant) voidprotected static StringgetFontInstanceHashName(SharedContext ctx, String name, float size, IdentValue weight, IdentValue style, IdentValue variant) Gets the fontInstanceHashName attribute of the FontResolverTest objectresolveFont(SharedContext ctx, String[] families, float size, IdentValue weight, IdentValue style, IdentValue variant) protected FontresolveFont(SharedContext ctx, String font, float size, IdentValue weight, IdentValue style, IdentValue variant) resolveFont(SharedContext renderingContext, FontSpecification spec) voidsetFontMapping(String name, Font font) Sets the fontMapping attribute of the FontResolver object
-
Constructor Details
-
AWTFontResolver
public AWTFontResolver()
-
-
Method Details
-
flushCache
public void flushCache()- Specified by:
flushCachein interfaceFontResolver
-
setFontMapping
Sets the fontMapping attribute of the FontResolver object- Parameters:
name- The new fontMapping valuefont- The new fontMapping value
-