pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1834049 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDTextAppearanceHandler.java
Date Thu, 21 Jun 2018 19:46:33 GMT
Author: tilman
Date: Thu Jun 21 19:46:33 2018
New Revision: 1834049

URL: http://svn.apache.org/viewvc?rev=1834049&view=rev
Log:
PDFBOX-3353: HELVETICA_BOLD looks better

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDTextAppearanceHandler.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDTextAppearanceHandler.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDTextAppearanceHandler.java?rev=1834049&r1=1834048&r2=1834049&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDTextAppearanceHandler.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDTextAppearanceHandler.java
Thu Jun 21 19:46:33 2018
@@ -299,9 +299,9 @@ public class PDTextAppearanceHandler ext
         contentStream.transform(Matrix.getScaleInstance(0.001f * min / 2.25f, 0.001f * min
/ 2.25f));
         contentStream.transform(Matrix.getTranslateInstance(555, 375));
 
-        // we get the shape of an Helvetica "?" and use that one.
+        // we get the shape of an Helvetica bold "?" and use that one.
         // Adobe uses a different font (which one?), or created the shape from scratch.
-        GeneralPath path = PDType1Font.HELVETICA.getPath("question");
+        GeneralPath path = PDType1Font.HELVETICA_BOLD.getPath("question");
         addPath(contentStream, path);
         contentStream.restoreGraphicsState();
         // draw the outer circle counterclockwise to fill area between circle and "?"



Mime
View raw message