aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/render/pdf
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-09-04 08:36:37 +0000
committerKeiron Liddle <keiron@apache.org>2002-09-04 08:36:37 +0000
commitc0a432e3aea3fcfcafd06642d2e419fb9de90cc3 (patch)
tree1f59937b239ae6adc9a8fbc4efbdb717a05f4428 /src/org/apache/fop/render/pdf
parent15b175f37b0f39e9a1d16fb35ed386a0959e3103 (diff)
downloadxmlgraphics-fop-c0a432e3aea3fcfcafd06642d2e419fb9de90cc3.tar.gz
xmlgraphics-fop-c0a432e3aea3fcfcafd06642d2e419fb9de90cc3.zip
removed old configuration
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195149 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/render/pdf')
-rw-r--r--src/org/apache/fop/render/pdf/FontReader.java16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/org/apache/fop/render/pdf/FontReader.java b/src/org/apache/fop/render/pdf/FontReader.java
index 31cfdb2e9..52e6452c4 100644
--- a/src/org/apache/fop/render/pdf/FontReader.java
+++ b/src/org/apache/fop/render/pdf/FontReader.java
@@ -16,10 +16,9 @@ import org.xml.sax.Attributes;
import java.io.IOException;
import java.util.Enumeration;
import java.util.ArrayList;
-import java.util.Hashtable;
+import java.util.HashMap;
import org.apache.fop.pdf.PDFWArray;
import org.apache.fop.pdf.PDFCIDFont;
-import org.apache.fop.configuration.ConfigurationReader;
import org.apache.fop.apps.FOPException;
/**
@@ -38,18 +37,23 @@ public class FontReader extends DefaultHandler {
private MultiByteFont multiFont = null;
private SingleByteFont singleFont = null;
private Font returnFont = null;
- // private SingleByteFont singleFont = null;
private String text = null;
private ArrayList cidWidths = null;
private int cidWidthIndex = 0;
- private Hashtable currentKerning = null;
+ private HashMap currentKerning = null;
private ArrayList bfranges = null;
private void createFont(String path) throws FOPException {
- XMLReader parser = ConfigurationReader.createParser();
+ XMLReader parser = null;
+
+ try {
+ parser = javax.xml.parsers.SAXParserFactory.newInstance().newSAXParser().getXMLReader();
+ } catch (Exception e) {
+ throw new FOPException(e);
+ }
if (parser == null)
throw new FOPException("Unable to create SAX parser");
@@ -147,7 +151,7 @@ public class FontReader extends DefaultHandler {
cidWidthIndex = getInt(attributes.getValue("start-index"));
cidWidths = new ArrayList();
} else if ("kerning".equals(localName)) {
- currentKerning = new Hashtable();
+ currentKerning = new HashMap();
if (isCID)
multiFont.kerning.put(new Integer(attributes.getValue("kpx1")),
currentKerning);