pdfbox-commits mailing list archives

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

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

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStreamEngine.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStreamEngine.java?rev=1755201&r1=1755200&r2=1755201&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStreamEngine.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStreamEngine.java Thu
Aug  4 16:17:52 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