aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fonts/CIDFont.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/fonts/CIDFont.java')
-rw-r--r--src/java/org/apache/fop/fonts/CIDFont.java24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/java/org/apache/fop/fonts/CIDFont.java b/src/java/org/apache/fop/fonts/CIDFont.java
index 73e7587aa..da73edabd 100644
--- a/src/java/org/apache/fop/fonts/CIDFont.java
+++ b/src/java/org/apache/fop/fonts/CIDFont.java
@@ -50,13 +50,28 @@
*/
package org.apache.fop.fonts;
-import org.apache.fop.pdf.PDFWArray;
+//Java
+import java.util.Map;
/**
* Abstract base class for CID fonts.
*/
public abstract class CIDFont extends CustomFont {
+ /**
+ * usedGlyphs contains orginal, new glyph index
+ */
+ public Map usedGlyphs = new java.util.HashMap();
+
+ /**
+ * usedGlyphsIndex contains new glyph, original index
+ */
+ public Map usedGlyphsIndex = new java.util.HashMap();
+ public int usedGlyphsCount = 0;
+
+ //private PDFWArray warray = new PDFWArray();
+ public int width[] = null;
+
// ---- Required ----
/**
* Returns the name of the base font.
@@ -107,11 +122,4 @@ public abstract class CIDFont extends CustomFont {
return true;
}
- /**
- * Returns a PDFWArray containing all the widths of the subset to be used.
- * @return the character widths
- * (todo) Try to avoid dependency on PDF library
- */
- public abstract PDFWArray getSubsetWidths();
-
} \ No newline at end of file