pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1641021 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/ExternalFonts.java
Date Sat, 22 Nov 2014 01:17:18 GMT
Author: jahewson
Date: Sat Nov 22 01:17:17 2014
New Revision: 1641021

URL: http://svn.apache.org/r1641021
Log:
PDFBOX-2467: Don't use original font name when substituting the Microsoft alternative font
names.

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/ExternalFonts.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/ExternalFonts.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/ExternalFonts.java?rev=1641021&r1=1641020&r2=1641021&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/ExternalFonts.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/ExternalFonts.java Sat
Nov 22 01:17:17 2014
@@ -180,9 +180,7 @@ public final class ExternalFonts
      */
     private static List<String> copySubstitutes(String postScriptName)
     {
-        List<String> copy = new ArrayList<String>(substitutes.get(postScriptName));
-        copy.add(0, postScriptName);
-        return copy;
+        return new ArrayList<String>(substitutes.get(postScriptName));
     }
 
     /**



Mime
View raw message