Package org.apache.fop.render.ps
Class FontResourceCache
java.lang.Object
org.apache.fop.render.ps.FontResourceCache
A cache for font resource objects.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a number of fonts to the cache.Returns the PSFontResource for the given font key.private String
-
Field Details
-
fontInfo
-
fontResources
This is a map of PSResource instances of all fonts defined (key: font key)
-
-
Constructor Details
-
FontResourceCache
-
-
Method Details
-
getFontResourceForFontKey
Returns the PSFontResource for the given font key.- Parameters:
key
- the font key ("F*")- Returns:
- the matching PSFontResource instance
-
getPostScriptNameForFontKey
-
addAll
Adds a number of fonts to the cache.- Parameters:
fontMap
- the font map
-