Class AWTFontResolver
java.lang.Object
org.openpdf.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, 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 objectprivate voidinit()resolveFont(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
-
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
-