From: Peter Bernard West Date: Tue, 25 May 2004 15:27:34 +0000 (+0000) Subject: Added FontData initialization. REmoved unused fields. X-Git-Tag: Defoe_export~142 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0f42562b4f8c34777128f5f97b5bc2da38dbfc51;p=xmlgraphics-fop.git Added FontData initialization. REmoved unused fields. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197627 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/render/awt/AWTRenderer.java b/src/java/org/apache/fop/render/awt/AWTRenderer.java index 5d9892c23..682133a3b 100644 --- a/src/java/org/apache/fop/render/awt/AWTRenderer.java +++ b/src/java/org/apache/fop/render/awt/AWTRenderer.java @@ -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 */