You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2008/01/28 23:05:40 UTC

svn commit: r616080 - in /xmlgraphics/fop/trunk: src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java status.xml

Author: jeremias
Date: Mon Jan 28 14:05:39 2008
New Revision: 616080

URL: http://svn.apache.org/viewvc?rev=616080&view=rev
Log:
Bugfix for invalid numTables entry in subset TrueType fonts if there was no "fpgm" table (Example: FreeSerif).

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java
    xmlgraphics/fop/trunk/status.xml

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java?rev=616080&r1=616079&r2=616080&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java Mon Jan 28 14:05:39 2008
@@ -21,8 +21,8 @@
 
 import java.io.IOException;
 import java.util.Iterator;
-import java.util.Map;
 import java.util.List;
+import java.util.Map;
 
 
 /**
@@ -71,7 +71,10 @@
      * Create the directory table
      */
     private void createDirectory() {
-        int numTables = 9;
+        int numTables = 8;
+        if (hasFpgm()) {
+            numTables++;
+        }
         // Create the TrueType header
         writeByte((byte)0);
         writeByte((byte)1);

Modified: xmlgraphics/fop/trunk/status.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/status.xml?rev=616080&r1=616079&r2=616080&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/status.xml (original)
+++ xmlgraphics/fop/trunk/status.xml Mon Jan 28 14:05:39 2008
@@ -28,6 +28,9 @@
 
   <changes>
     <release version="FOP Trunk">
+      <action context="Fonts" dev="JM" type="fix">
+        Bugfix for invalid numTables entry in subset TrueType fonts if there was no "fpgm" table.
+      </action>
       <action context="Renderers" dev="JM" type="add">
         Added support for the natural language indentifier ("Lang" in the document catalog)
         for PDF documents based on the language/country values on fo:page-sequence.



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org