Skip to content

Commit

Permalink
PDFBOX-4071: remove segment that is never reached (all PDSimpleFont c…
Browse files Browse the repository at this point in the history
…lasses are PDVectorFont except PDType3Font)

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1867925 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Oct 3, 2019
1 parent b44faa1 commit 5121e9e
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import org.apache.pdfbox.pdmodel.common.PDRectangle;
import org.apache.pdfbox.pdmodel.font.PDCIDFontType2;
import org.apache.pdfbox.pdmodel.font.PDFont;
import org.apache.pdfbox.pdmodel.font.PDSimpleFont;
import org.apache.pdfbox.pdmodel.font.PDTrueTypeFont;
import org.apache.pdfbox.pdmodel.font.PDType0Font;
import org.apache.pdfbox.pdmodel.font.PDType3CharProc;
Expand Down Expand Up @@ -180,15 +179,6 @@ else if (font instanceof PDVectorFont)
}
}
}
else if (font instanceof PDSimpleFont)
{
PDSimpleFont simpleFont = (PDSimpleFont) font;

// these two lines do not always work, e.g. for the TT fonts in file 032431.pdf
// which is why PDVectorFont is tried first.
String name = simpleFont.getEncoding().getName(code);
path = simpleFont.getPath(name);
}
else
{
// shouldn't happen, please open issue in JIRA
Expand Down

0 comments on commit 5121e9e

Please sign in to comment.