Author: tilman
Date: Sat Sep  2 03:48:29 2023
New Revision: 1912047

URL: http://svn.apache.org/viewvc?rev=1912047&view=rev
Log:
PDFBOX-2941: show whether font is embedded

Modified:
    
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/SimpleFont.java
    
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/Type0Font.java

Modified: 
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/SimpleFont.java
URL: 
http://svn.apache.org/viewvc/pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/SimpleFont.java?rev=1912047&r1=1912046&r2=1912047&view=diff
==============================================================================
--- 
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/SimpleFont.java
 (original)
+++ 
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/SimpleFont.java
 Sat Sep  2 03:48:29 2023
@@ -55,6 +55,7 @@ class SimpleFont extends FontPane
         attributes.put("Encoding", getEncodingName(font));
         attributes.put("Glyphs", Integer.toString(totalAvailableGlyph));
         attributes.put("Standard 14", Boolean.toString(font.isStandard14()));
+        attributes.put("Embedded", Boolean.toString(font.isEmbedded()));
 
         view = new FontEncodingView(tableData, attributes, 
                 new String[] {"Code", "Glyph Name", "Unicode Character", 
"Glyph"}, yBounds);

Modified: 
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/Type0Font.java
URL: 
http://svn.apache.org/viewvc/pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/Type0Font.java?rev=1912047&r1=1912046&r2=1912047&view=diff
==============================================================================
--- 
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/Type0Font.java
 (original)
+++ 
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/Type0Font.java
 Sat Sep  2 03:48:29 2023
@@ -58,6 +58,7 @@ class Type0Font extends FontPane
             Map<String, String> attributes = new LinkedHashMap<String, 
String>();
             attributes.put("Font", descendantFont.getName());
             attributes.put("CIDs", Integer.toString(cidtogid.length));
+            attributes.put("Embedded", 
Boolean.toString(descendantFont.isEmbedded()));
 
             view = new FontEncodingView(cidtogid, attributes, 
                     new String[]{"CID", "GID", "Unicode Character", "Glyph"}, 
getYBounds(cidtogid, 3));
@@ -70,6 +71,7 @@ class Type0Font extends FontPane
             attributes.put("CIDs", Integer.toString(tab.length));
             attributes.put("Glyphs", Integer.toString(totalAvailableGlyph));
             attributes.put("Standard 14", 
Boolean.toString(parentFont.isStandard14()));
+            attributes.put("Embedded", 
Boolean.toString(descendantFont.isEmbedded()));
 
             view = new FontEncodingView(tab, attributes, 
                     new String[]{"Code", "CID", "GID", "Unicode Character", 
"Glyph"}, getYBounds(tab, 4));


Reply via email to