pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1755202 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStreamEngine.java
Date Thu, 04 Aug 2016 16:17:56 GMT
Author: tilman
Date: Thu Aug  4 16:17:56 2016
New Revision: 1755202

URL: http://svn.apache.org/viewvc?rev=1755202&view=rev
Log:
PDFBOX-3435: use CapHeight when glyphHeight is 0

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStreamEngine.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStreamEngine.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStreamEngine.java?rev=1755202&r1=1755201&r2=1755202&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStreamEngine.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStreamEngine.java
Thu Aug  4 16:17:56 2016
@@ -168,7 +168,7 @@ class PDFTextStreamEngine extends PDFStr
         if (fontDescriptor != null)
         {
             float capHeight = fontDescriptor.getCapHeight();
-            if (capHeight != 0 && capHeight < glyphHeight)
+            if (capHeight != 0 && (capHeight < glyphHeight || glyphHeight == 0))
             {
                 glyphHeight = capHeight;
             }



Mime
View raw message