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 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 objectprivate voidinit()resolveFont(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
-
Field Details
-
fontsCache
-
availableFontNames
-
availableFonts
-
-
Constructor Details
-
AWTFontResolver
public AWTFontResolver()
-
-
Method Details
-
init
private void init() -
flushCache
public void flushCache()- Specified by:
flushCachein interfaceFontResolver
-
setFontMapping
-