Package org.xhtmlrenderer.context
Class AWTFontResolver
java.lang.Object
org.xhtmlrenderer.context.AWTFontResolver
- All Implemented Interfaces:
FontResolver
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Font
createFont
(SharedContext ctx, Font root_font, float size, IdentValue weight, IdentValue style, IdentValue variant) void
protected static String
getFontInstanceHashName
(SharedContext ctx, String name, float size, IdentValue weight, IdentValue style, IdentValue variant) Gets the fontInstanceHashName attribute of the FontResolverTest objectprivate void
init()
resolveFont
(SharedContext ctx, String[] families, float size, IdentValue weight, IdentValue style, IdentValue variant) protected Font
resolveFont
(SharedContext ctx, String font, float size, IdentValue weight, IdentValue style, IdentValue variant) resolveFont
(SharedContext renderingContext, FontSpecification spec) void
setFontMapping
(String name, Font font) Sets the fontMapping attribute of the FontResolver object
-
Field Details
-
fontsCache
-
availableFontNames
-
availableFonts
-
-
Constructor Details
-
AWTFontResolver
public AWTFontResolver()
-
-
Method Details
-
init
private void init() -
flushCache
public void flushCache()- Specified by:
flushCache
in interfaceFontResolver
-
setFontMapping
Sets the fontMapping attribute of the FontResolver object- Parameters:
name
- The new fontMapping valuefont
- The new fontMapping value
-