pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1743296 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/OpenTypeFont.java
Date Wed, 11 May 2016 04:14:21 GMT
Author: jahewson
Date: Wed May 11 04:14:21 2016
New Revision: 1743296

URL: http://svn.apache.org/viewvc?rev=1743296&view=rev
Log:
PDFBOX-3344: Correct detection of OTF fonts via OTTO header

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

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/OpenTypeFont.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/OpenTypeFont.java?rev=1743296&r1=1743295&r2=1743296&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/OpenTypeFont.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/OpenTypeFont.java Wed May 11
04:14:21 2016
@@ -40,7 +40,7 @@ public class OpenTypeFont extends TrueTy
     @Override
     void setVersion(float versionValue)
     {
-        isPostScript = versionValue != 1.0;
+        isPostScript = Float.floatToIntBits(versionValue) == 0x469EA8A9; // OTTO
         super.setVersion(versionValue);
     }
     



Mime
View raw message