pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1865701 - /pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FileSystemFontProvider.java
Date Thu, 22 Aug 2019 17:07:43 GMT
Author: tilman
Date: Thu Aug 22 17:07:43 2019
New Revision: 1865701

URL: http://svn.apache.org/viewvc?rev=1865701&view=rev
Log:
PDFBOX-4071: SonarQube fix

Modified:
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FileSystemFontProvider.java

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FileSystemFontProvider.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FileSystemFontProvider.java?rev=1865701&r1=1865700&r2=1865701&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FileSystemFontProvider.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FileSystemFontProvider.java
Thu Aug 22 17:07:43 2019
@@ -206,6 +206,9 @@ final class FileSystemFontProvider exten
         {
             if (file.getName().toLowerCase().endsWith(".ttc"))
             {
+                @SuppressWarnings("squid:S2095")
+                // ttc not closed here because it is needed later when ttf is accessed,
+                // e.g. rendering PDF with non-embedded font which is in ttc file in our
font directory
                 TrueTypeCollection ttc = new TrueTypeCollection(file);
                 TrueTypeFont ttf = ttc.getFontByName(postScriptName);
                 if (ttf == null)



Mime
View raw message