aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
+ }
}