diff options
author | Simon Steiner <ssteiner@apache.org> | 2017-10-11 07:49:03 +0000 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2017-10-11 07:49:03 +0000 |
commit | c803867f451abf384fdc1bd5f524bfe3c2e47851 (patch) | |
tree | dfb22ecbe70f4eabbf2d026fbb6fd60400161360 /fop-core/src/test | |
parent | ade0e4ebd6ce8f92e9a19878e838a5a75226801d (diff) | |
download | xmlgraphics-fop-c803867f451abf384fdc1bd5f524bfe3c2e47851.tar.gz xmlgraphics-fop-c803867f451abf384fdc1bd5f524bfe3c2e47851.zip |
FOP-2750: Use streams for OTF subsetting
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1811797 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-core/src/test')
-rw-r--r-- | fop-core/src/test/java/org/apache/fop/fonts/truetype/OTFSubSetFileTestCase.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fop-core/src/test/java/org/apache/fop/fonts/truetype/OTFSubSetFileTestCase.java b/fop-core/src/test/java/org/apache/fop/fonts/truetype/OTFSubSetFileTestCase.java index 8f15edde0..c872c731e 100644 --- a/fop-core/src/test/java/org/apache/fop/fonts/truetype/OTFSubSetFileTestCase.java +++ b/fop-core/src/test/java/org/apache/fop/fonts/truetype/OTFSubSetFileTestCase.java @@ -508,7 +508,7 @@ public class OTFSubSetFileTestCase extends OTFFileTestCase { super.createCFF(); } - protected void updateFixedOffsets(Map<String, DICTEntry> topDICT, Offsets offsets) { + protected void updateFixedOffsets(Map<String, DICTEntry> topDICT, Offsets offsets) throws IOException { this.charsetOffset = offsets.charset; super.updateFixedOffsets(topDICT, offsets); } @@ -621,7 +621,7 @@ public class OTFSubSetFileTestCase extends OTFFileTestCase { super.createCFF(); } - protected void updateCIDOffsets(Offsets offsets) { + protected void updateCIDOffsets(Offsets offsets) throws IOException { super.updateCIDOffsets(offsets); this.offsets = offsets; } @@ -658,7 +658,6 @@ public class OTFSubSetFileTestCase extends OTFFileTestCase { public void testWriteCIDDictsAndSubrs() throws IOException { OTFSubSetFile subSetFile = new OTFSubSetFile() { public void readFont(FontFileReader in, String embeddedName, MultiByteFont mbFont) throws IOException { - output = new byte[128]; cffReader = makeCFFDataReader(); fdSubrs = new ArrayList<List<byte[]>>(); fdSubrs.add(new ArrayList<byte[]>()); @@ -682,7 +681,6 @@ public class OTFSubSetFileTestCase extends OTFFileTestCase { OTFSubSetFile otfSubSetFile = new OTFSubSetFile() { void readFont(FontFileReader in, String embeddedName, MultiByteFont mbFont, Map<Integer, Integer> usedGlyphs) throws IOException { - output = new byte[7]; cffReader = makeCFFDataReader(); LinkedHashMap<String, DICTEntry> topDict = new LinkedHashMap<String, DICTEntry>(); DICTEntry entry = new DICTEntry(); |