Author: tilman Date: Wed Dec 6 15:56:37 2023 New Revision: 1914390 URL: http://svn.apache.org/viewvc?rev=1914390&view=rev Log: PDFBOX-5728: check whether there are any glyph names in the POST table
Modified: pdfbox/branches/3.0/fontbox/src/main/java/org/apache/fontbox/ttf/TTFSubsetter.java Modified: pdfbox/branches/3.0/fontbox/src/main/java/org/apache/fontbox/ttf/TTFSubsetter.java URL: http://svn.apache.org/viewvc/pdfbox/branches/3.0/fontbox/src/main/java/org/apache/fontbox/ttf/TTFSubsetter.java?rev=1914390&r1=1914389&r2=1914390&view=diff ============================================================================== --- pdfbox/branches/3.0/fontbox/src/main/java/org/apache/fontbox/ttf/TTFSubsetter.java (original) +++ pdfbox/branches/3.0/fontbox/src/main/java/org/apache/fontbox/ttf/TTFSubsetter.java Wed Dec 6 15:56:37 2023 @@ -832,7 +832,8 @@ public final class TTFSubsetter private byte[] buildPostTable() throws IOException { PostScriptTable post = ttf.getPostScript(); - if (post == null || keepTables != null && !keepTables.contains(PostScriptTable.TAG)) + if (post == null || post.getGlyphNames() == null || + keepTables != null && !keepTables.contains(PostScriptTable.TAG)) { return null; }