Skip to content

Commit f3d2a43

Browse files
committed
PDFBOX-6085: bugfix skip invisible glyphs when adding compound references
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1929280 13f79535-47bb-0310-9956-ffa450edef68
1 parent 1aef01f commit f3d2a43

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fontbox/src/main/java/org/apache/fontbox/ttf/TTFSubsetter.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,10 @@ private void addCompoundReferences() throws IOException
527527
LOG.debug("Tried skipping {} bytes but skipped only {} bytes",
528528
offset - lastOff, isResult);
529529
}
530-
530+
if (invisibleGlyphIds.contains(gid))
531+
{
532+
continue;
533+
}
531534
byte[] buf = new byte[(int) length];
532535
isResult = is.read(buf);
533536

0 commit comments

Comments
 (0)