an errormessage and tries to embed the font without the composite glyph.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194276
13f79535-47bb-0310-9956-
ffa450edef68
flags = in.readTTFUShort(offset);
compositeIdx = new Integer(in.readTTFUShort(offset+2));
Integer newIdx = (Integer)glyphs.get(compositeIdx);
+ if (newIdx == null) {
+ // This errormessage would look much better
+ // if the fontname was printed to
+ MessageHandler.error("An embedded font " +
+ "contains bad glyph data. " +
+ "Characters might not display " +
+ "correctly.");
+ moreComposites = false;
+ continue;
+ }
+
in.writeTTFUShort(offset+2, newIdx.intValue());
offset+=4;