Skip to content

Commit

Permalink
PDFBOX-5384: revert Tahoma / Verdana commits due to regression
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1922917 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Jan 6, 2025
1 parent 0b8f2fa commit ac3891a
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,6 @@ private CMap loadUnicodeCmap()
{
String name = getName();
LOG.warn("Invalid ToUnicode CMap in font {}", name);
if (toUnicode instanceof COSStream && name != null &&
(name.startsWith("Tahoma") || name.startsWith("Verdana")))
{
// PDFBOX-5384: workaround inspired by PDF.js 15719 and 11242
return null;
}
String cmapName = cmap.getName() != null ? cmap.getName() : "";
String ordering = cmap.getOrdering() != null ? cmap.getOrdering() : "";
COSName encoding = dict.getCOSName(COSName.ENCODING);
Expand Down

0 comments on commit ac3891a

Please sign in to comment.