pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r718466 - in /incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font: PDTrueTypeFont.java PDType1Font.java
Date Tue, 18 Nov 2008 01:44:25 GMT
Author: jukka
Date: Mon Nov 17 17:44:25 2008
New Revision: 718466

URL: http://svn.apache.org/viewvc?rev=718466&view=rev
Log:
PDFBOX-162: font spacing

Patch by Andreas Lehmkuhler.

Modified:
    incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
    incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java

Modified: incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java?rev=718466&r1=718465&r2=718466&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
(original)
+++ incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
Mon Nov 17 17:44:25 2008
@@ -361,7 +361,7 @@
         Graphics2D g2d = (Graphics2D)g;
         g2d.setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON
);
         g2d.setFont( awtFont.deriveFont( at ).deriveFont( fontSize ) );
-        g2d.drawString( string, (int)x, (int)y );
+        g2d.drawString( string, x, y );
     }
 
     /**

Modified: incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java?rev=718466&r1=718465&r2=718466&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java (original)
+++ incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java Mon
Nov 17 17:44:25 2008
@@ -276,6 +276,6 @@
         g2d.setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON
);
         g2d.setFont( awtFont.deriveFont( at ).deriveFont( fontSize ) );
 
-        g2d.drawString( string, (int)x, (int)y );
+        g2d.drawString( string, x, y );
     }
 }



Mime
View raw message