pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1824630 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFontType2Embedder.java
Date Sat, 17 Feb 2018 20:10:21 GMT
Author: tilman
Date: Sat Feb 17 20:10:21 2018
New Revision: 1824630

URL: http://svn.apache.org/viewvc?rev=1824630&view=rev
Log:
PDFBOX-4106: fix format

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFontType2Embedder.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFontType2Embedder.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFontType2Embedder.java?rev=1824630&r1=1824629&r2=1824630&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFontType2Embedder.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFontType2Embedder.java
Sat Feb 17 20:10:21 2018
@@ -530,9 +530,12 @@ final class PDCIDFontType2Embedder exten
         for (int cid = 0; cid < cidMax; cid++)
         {
             GlyphData glyph = ttf.getGlyph().getGlyph(cid);
-            if (glyph == null) {
+            if (glyph == null)
+            {
                 gidMetrics[cid * 4] = Integer.MIN_VALUE;
-            } else {
+            }
+            else
+            {
                 gidMetrics[cid * 4] = cid;
                 gidMetrics[cid * 4 + 1] = ttf.getVerticalMetrics().getAdvanceHeight(cid);
                 gidMetrics[cid * 4 + 2] = ttf.getHorizontalMetrics().getAdvanceWidth(cid);



Mime
View raw message