xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbowdi...@apache.org
Subject svn commit: r567078 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop: fonts/type1/PFMFile.java render/pdf/PDFRenderer.java
Date Fri, 17 Aug 2007 16:06:39 GMT
Author: cbowditch
Date: Fri Aug 17 09:06:38 2007
New Revision: 567078

URL: http://svn.apache.org/viewvc?view=rev&rev=567078
Log:
Bugzilla #43089
Fix underline for Type1 Fonts in PDF
Submitted by Adrian Cumiskey <dev.at.cumiskey.com>

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/type1/PFMFile.java
    xmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFRenderer.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/type1/PFMFile.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/type1/PFMFile.java?view=diff&rev=567078&r1=567077&r2=567078
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/type1/PFMFile.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/type1/PFMFile.java Fri Aug 17 09:06:38
2007
@@ -236,7 +236,7 @@
         etmCapHeight = inStream.readShort();
         etmXHeight = inStream.readShort();
         etmLowerCaseAscent = inStream.readShort();
-        etmLowerCaseDescent = inStream.readShort();
+        etmLowerCaseDescent = -(inStream.readShort());
         //Ignore the rest of the values
     }
 
@@ -391,7 +391,7 @@
         } else {
             bbox[0] = -100;
         }
-        bbox[1] = -(getLowerCaseDescent() + 5);
+        bbox[1] = getLowerCaseDescent() - 5;
         bbox[2] = dfMaxWidth + 10;
         bbox[3] = getLowerCaseAscent() + 5;
         return bbox;

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFRenderer.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFRenderer.java?view=diff&rev=567078&r1=567077&r2=567078
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFRenderer.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFRenderer.java Fri Aug 17 09:06:38
2007
@@ -820,7 +820,7 @@
         float w = x2 - x1;
         float h = y2 - y1;
         if ((w < 0) || (h < 0)) {
-            log.error("Negative extent received. Border won't be painted.");
+            log.error("Negative extent received (w=" + w + ", h=" + h + "). Border won't
be painted.");
             return;
         }
         switch (style) {



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


Mime
View raw message