Fix for regression introduced by revision
1352986: NPE when auto-detecting TrueType Collections.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-1_1@
1395925 13f79535-47bb-0310-9956-
ffa450edef68
for (Integer unicodeKey2 : ckpx.keySet()) {
Integer cidKey2 = unicodeToGlyph(unicodeKey2.intValue());
- Integer kern = (Integer)ckpx.get(unicodeKey2);
+ Integer kern = ckpx.get(unicodeKey2);
Iterator uniMap = mtxTab[cidKey2.intValue()].getUnicodeIndex().listIterator();
while (uniMap.hasNext()) {
* @throws IOException In case of an I/O problem
*/
public final List<String> getTTCnames(FontFileReader in) throws IOException {
+ this.fontFile = in;
+
List<String> fontNames = new ArrayList<String>();
String tag = in.readTTFString(4);