aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2020-04-15 08:40:55 +0000
committerSimon Steiner <ssteiner@apache.org>2020-04-15 08:40:55 +0000
commit551007e7e0f14b85dfd8f33d3cf8a4e1635c09cd (patch)
tree4a9328d33866b4461d587a5aea96379b0c7cbe1e /fop-core
parente171bfe575eaa16b11fbdf1cd9db5730d8949020 (diff)
downloadxmlgraphics-fop-551007e7e0f14b85dfd8f33d3cf8a4e1635c09cd.tar.gz
xmlgraphics-fop-551007e7e0f14b85dfd8f33d3cf8a4e1635c09cd.zip
FOP-2704: Don't fail on coverage set class table not supported
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1876539 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-core')
-rw-r--r--fop-core/src/main/java/org/apache/fop/complexscripts/fonts/GlyphClassTable.java6
-rw-r--r--fop-core/src/test/java/org/apache/fop/complexscripts/fonts/GSUBTestCase.java7
2 files changed, 12 insertions, 1 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/complexscripts/fonts/GlyphClassTable.java b/fop-core/src/main/java/org/apache/fop/complexscripts/fonts/GlyphClassTable.java
index b15fcbead..9b15d4cd6 100644
--- a/fop-core/src/main/java/org/apache/fop/complexscripts/fonts/GlyphClassTable.java
+++ b/fop-core/src/main/java/org/apache/fop/complexscripts/fonts/GlyphClassTable.java
@@ -22,6 +22,9 @@ package org.apache.fop.complexscripts.fonts;
import java.util.Iterator;
import java.util.List;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
// CSOFF: LineLengthCheck
/**
@@ -255,8 +258,9 @@ public final class GlyphClassTable extends GlyphMappingTable implements GlyphCla
}
private static class CoverageSetClassTable extends GlyphMappingTable.EmptyMappingTable implements GlyphClassMapping {
+ private static final Log LOG = LogFactory.getLog(CoverageSetClassTable.class);
public CoverageSetClassTable(List entries) {
- throw new UnsupportedOperationException("coverage set class table not yet supported");
+ LOG.warn("coverage set class table not yet supported");
}
/** {@inheritDoc} */
public int getType() {
diff --git a/fop-core/src/test/java/org/apache/fop/complexscripts/fonts/GSUBTestCase.java b/fop-core/src/test/java/org/apache/fop/complexscripts/fonts/GSUBTestCase.java
index bdd0983ff..5519240c6 100644
--- a/fop-core/src/test/java/org/apache/fop/complexscripts/fonts/GSUBTestCase.java
+++ b/fop-core/src/test/java/org/apache/fop/complexscripts/fonts/GSUBTestCase.java
@@ -21,6 +21,7 @@ package org.apache.fop.complexscripts.fonts;
import java.io.File;
import java.nio.IntBuffer;
+import java.util.Collections;
import org.junit.Test;
@@ -184,4 +185,10 @@ public class GSUBTestCase implements ScriptContextTester, GlyphContextTester {
}
}
+ @Test
+ public void testCreateClassTable() {
+ GlyphCoverageTable coverageTable = GlyphCoverageTable.createCoverageTable(null);
+ GlyphClassTable classTable = GlyphClassTable.createClassTable(Collections.singletonList(coverageTable));
+ assertNotNull(classTable);
+ }
}