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, @Nullable IdentValue weight, @Nullable IdentValue style, @Nullable 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 @Nullable [] families, float size, IdentValue weight, IdentValue style, IdentValue variant) protected @Nullable FontresolveFont(SharedContext ctx, String font, float size, IdentValue weight, IdentValue style, IdentValue variant) @Nullable FSFontresolveFont(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
-