aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2009-02-11 14:54:26 +0000
committerJeremias Maerki <jeremias@apache.org>2009-02-11 14:54:26 +0000
commitd6d990706005e2a8d11a05306d74df8fd03324b5 (patch)
treee6714f9e48043a9720ab8a55d5c14b89141f7661
parent51531ec6417d6000c33933c24d3129792730adc8 (diff)
downloadxmlgraphics-fop-d6d990706005e2a8d11a05306d74df8fd03324b5.tar.gz
xmlgraphics-fop-d6d990706005e2a8d11a05306d74df8fd03324b5.zip
Added missing default font setup.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@743351 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/render/pcl/PCLDocumentHandler.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/pcl/PCLDocumentHandler.java b/src/java/org/apache/fop/render/pcl/PCLDocumentHandler.java
index d7011f112..bf067b1a4 100644
--- a/src/java/org/apache/fop/render/pcl/PCLDocumentHandler.java
+++ b/src/java/org/apache/fop/render/pcl/PCLDocumentHandler.java
@@ -34,12 +34,14 @@ import org.apache.xmlgraphics.util.UnitConv;
import org.apache.fop.apps.FopFactoryConfigurator;
import org.apache.fop.apps.MimeConstants;
+import org.apache.fop.fonts.FontInfo;
import org.apache.fop.render.intermediate.AbstractBinaryWritingIFDocumentHandler;
import org.apache.fop.render.intermediate.IFContext;
import org.apache.fop.render.intermediate.IFDocumentHandlerConfigurator;
import org.apache.fop.render.intermediate.IFException;
import org.apache.fop.render.intermediate.IFPainter;
import org.apache.fop.render.java2d.Java2DPainter;
+import org.apache.fop.render.java2d.Java2DUtil;
import org.apache.fop.render.pcl.extensions.PCLElementMapping;
/**
@@ -95,6 +97,12 @@ public class PCLDocumentHandler extends AbstractBinaryWritingIFDocumentHandler
return new PCLRendererConfigurator(getUserAgent());
}
+ /** {@inheritDoc} */
+ public void setDefaultFontInfo(FontInfo fontInfo) {
+ FontInfo fi = Java2DUtil.buildDefaultJava2DBasedFontInfo(fontInfo, getUserAgent());
+ setFontInfo(fi);
+ }
+
PCLRenderingUtil getPCLUtil() {
return this.pclUtil;
}