Skip to content

Commit ac3891a

Browse files
committed
PDFBOX-5384: revert Tahoma / Verdana commits due to regression
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1922917 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0b8f2fa commit ac3891a

File tree

1 file changed

+0
-6
lines changed
  • pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font

1 file changed

+0
-6
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,6 @@ private CMap loadUnicodeCmap()
146146
{
147147
String name = getName();
148148
LOG.warn("Invalid ToUnicode CMap in font {}", name);
149-
if (toUnicode instanceof COSStream && name != null &&
150-
(name.startsWith("Tahoma") || name.startsWith("Verdana")))
151-
{
152-
// PDFBOX-5384: workaround inspired by PDF.js 15719 and 11242
153-
return null;
154-
}
155149
String cmapName = cmap.getName() != null ? cmap.getName() : "";
156150
String ordering = cmap.getOrdering() != null ? cmap.getOrdering() : "";
157151
COSName encoding = dict.getCOSName(COSName.ENCODING);

0 commit comments

Comments
 (0)