We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f651351 commit eca375cCopy full SHA for eca375c
src/main/java/com/itextpdf/html2pdf/resolver/font/DefaultFontProvider.java
@@ -136,11 +136,8 @@ private Range addCalligraphFonts() {
136
} catch (ClassNotFoundException ignored) { }
137
if (klass != null) {
138
try {
139
- Class[] cArg = {FontProvider.class};
140
Method m = klass.getMethod(methodName);
141
- // an empty array of arguments is needed for autoport
142
- Object[] args = new Object[] {};
143
- ArrayList<byte[]> fontStreams = (ArrayList<byte[]>) m.invoke(cArg, args);
+ ArrayList<byte[]> fontStreams = (ArrayList<byte[]>) m.invoke(null, null);
144
for (byte[] font : fontStreams)
145
addFont(font);
146
// here we return a unicode range that excludes the loaded from the calligraph module fonts
0 commit comments