Package org.docx4j.fonts.fop.fonts
Class FontAdder
java.lang.Object
org.docx4j.fonts.fop.fonts.FontAdder
public class FontAdder
extends java.lang.Object
Adds a list of fonts to a given font info list
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlog -
Constructor Summary
Constructors Constructor Description FontAdder(FontManager manager, InternalResourceResolver resourceResolver, FontEventListener listener)Main constructor -
Method Summary
Modifier and Type Method Description voidadd(java.util.List<java.net.URL> fontURLList, java.util.List<EmbedFontInfo> fontInfoList)Iterates over font url list adding to font info listMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
log
protected static org.slf4j.Logger log
-
-
Constructor Details
-
FontAdder
public FontAdder(FontManager manager, InternalResourceResolver resourceResolver, FontEventListener listener)Main constructor- Parameters:
manager- a font managerresourceResolver- a font resolverlistener- a font event handler
-
-
Method Details
-
add
public void add(java.util.List<java.net.URL> fontURLList, java.util.List<EmbedFontInfo> fontInfoList) throws java.net.URISyntaxExceptionIterates over font url list adding to font info list- Parameters:
fontURLList- font file listfontInfoList- a configured font info list- Throws:
java.net.URISyntaxException- if a URI syntax error is found
-