]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added FontData initialization. REmoved unused fields.
authorPeter Bernard West <pbwest@apache.org>
Tue, 25 May 2004 15:27:34 +0000 (15:27 +0000)
committerPeter Bernard West <pbwest@apache.org>
Tue, 25 May 2004 15:27:34 +0000 (15:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197627 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/awt/AWTRenderer.java

index 5d9892c23ac3bcaee86ccfdd413584d00cdf9650..682133a3b56cc91d61e5d31a8e463a8d378a5e44 100644 (file)
@@ -42,6 +42,7 @@ import java.util.Map;
 import org.apache.fop.apps.FOPException;
 import org.apache.fop.area.PageViewport;
 import org.apache.fop.render.AbstractRenderer;
+import org.apache.fop.render.FontData;
 import org.apache.fop.render.awt.viewer.PreviewDialog;
 import org.apache.fop.render.awt.viewer.Translator;
 
@@ -68,6 +69,10 @@ implements Runnable, Printable, Pageable {
     private Map fontStyles = new java.util.Hashtable();
     private Color saveColor = null;
 
+    protected Fonts fontData = null;
+    public FontData getFontData() {
+        return fontData;
+    }
     /**
      * The preview dialog frame used for display of the documents.
      * Also used as the AWT Component for FontSetup in generating
@@ -76,20 +81,11 @@ implements Runnable, Printable, Pageable {
     protected PreviewDialog frame;
 
     public AWTRenderer() {
+        fontData = new Fonts();
         translator = new Translator();
         //createPreviewDialog();
     }
 
-    /**
-     * Returns the graphics environment (including available font information)
-     * for this renderer.
-     * 
-     * @return the graphics environment for this renderer
-     */
-    public GraphicsEnvironment getGraphicsEnvironment() {
-        return gEnv;
-    }
-
     /**
      * @see org.apache.fop.render.Renderer
      */