Class FontInfoFinder
java.lang.Object
org.docx4j.fonts.fop.fonts.autodetect.FontInfoFinder
public class FontInfoFinder
extends java.lang.Object
Attempts to determine correct FontInfo
-
Constructor Summary
Constructors Constructor Description FontInfoFinder() -
Method Summary
Modifier and Type Method Description EmbedFontInfo[]find(java.net.URL fontUrl, FontResolver resolver, FontCache fontCache)Attempts to determine EmbedFontInfo from a given font file.voidsetEventListener(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
Attempts to determine EmbedFontInfo from a given font file.- Parameters:
fontUrl- font URL. Assumed to be local.resolver- 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
-