pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1704728 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFParser.java
Date Tue, 22 Sep 2015 21:07:28 GMT
Author: tilman
Date: Tue Sep 22 21:07:25 2015
New Revision: 1704728

URL: http://svn.apache.org/viewvc?rev=1704728&view=rev
Log:
PDFBOX-2986: revert commit 1704703 due to differences in font rendering

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFParser.java

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFParser.java?rev=1704728&r1=1704727&r2=1704728&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFParser.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFParser.java Tue Sep 22 21:07:25
2015
@@ -81,17 +81,7 @@ public class TTFParser
      */
     public TrueTypeFont parse(File ttfFile) throws IOException
     {
-        TrueTypeFont ttf = null;
-        RAFDataStream raf = new RAFDataStream(ttfFile, "r");
-        try
-        {
-            ttf = parse(raf);
-        }
-        finally
-        {
-            raf.close();
-        }
-        return ttf;
+        return parse(new RAFDataStream(ttfFile, "r"));
     }
 
     /**



Mime
View raw message