Package org.apache.fop.fonts.autodetect
Class FontInfoFinder
java.lang.Object
org.apache.fop.fonts.autodetect.FontInfoFinder
Attempts to determine correct FontInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfind
(URI fontURI, InternalResourceResolver resourceResolver, FontCache fontCache) Attempts to determine EmbedFontInfo from a given font file.void
setEventListener
(FontEventListener listener) Sets the font event listener that can be used to receive events about particular events in this class.
-
Constructor Details
-
FontInfoFinder
public FontInfoFinder()
-
-
Method Details
-
setEventListener
Sets the font event listener that can be used to receive events about particular events in this class.- Parameters:
listener
- the font event listener
-
find
public EmbedFontInfo[] find(URI fontURI, InternalResourceResolver resourceResolver, FontCache fontCache) Attempts to determine EmbedFontInfo from a given font file.- Parameters:
fontURI
- the URI of the font resourceresourceResolver
- font resolver used to resolve fontfontCache
- font cache (may be null)- Returns:
- an array of newly created embed font info. Generally, this array will have only one entry, unless the fontUrl is a TrueType Collection
-