diff options
author | Jeremias Maerki <jeremias@apache.org> | 2008-01-07 15:06:24 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2008-01-07 15:06:24 +0000 |
commit | eb93b9ef5345d734f6204c75e3171255833ac9f8 (patch) | |
tree | 4c57ca6576427efbdb12fb6b181b57850f5b8f51 /src/java/org/apache/fop/render/pcl | |
parent | 6415c9acd2fcfeb4961d53b8b5b967ad1010dceb (diff) | |
download | xmlgraphics-fop-eb93b9ef5345d734f6204c75e3171255833ac9f8.tar.gz xmlgraphics-fop-eb93b9ef5345d734f6204c75e3171255833ac9f8.zip |
Bugzilla #44176:
Support for custom fonts in Java2DRenderer and derived renderers.
Submitted by: Patrick Jaromin <patrick.at.jgsullivan.dot.com>
Patch modified slightly by jeremias.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@609627 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/pcl')
-rw-r--r-- | src/java/org/apache/fop/render/pcl/PCLRenderer.java | 8 | ||||
-rw-r--r-- | src/java/org/apache/fop/render/pcl/PCLRendererConfigurator.java | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/render/pcl/PCLRenderer.java b/src/java/org/apache/fop/render/pcl/PCLRenderer.java index 095c3bba7..732ce0f8f 100644 --- a/src/java/org/apache/fop/render/pcl/PCLRenderer.java +++ b/src/java/org/apache/fop/render/pcl/PCLRenderer.java @@ -48,8 +48,12 @@ import java.util.List; import java.util.Map; import java.util.Stack; +import org.w3c.dom.Document; + import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.xmlgraphics.java2d.GraphicContext; + import org.apache.fop.apps.FOPException; import org.apache.fop.apps.MimeConstants; import org.apache.fop.area.Area; @@ -86,8 +90,6 @@ import org.apache.fop.render.pcl.extensions.PCLElementMapping; import org.apache.fop.traits.BorderProps; import org.apache.fop.util.QName; import org.apache.fop.util.UnitConv; -import org.apache.xmlgraphics.java2d.GraphicContext; -import org.w3c.dom.Document; /** * Renderer for the PCL 5 printer language. It also uses HP GL/2 for certain graphic elements. @@ -182,7 +184,7 @@ public class PCLRenderer extends PrintRenderer { //The next line is important to get accurate font metrics! g.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON); - FontSetup.setup(fontInfo, g); + FontSetup.setup(fontInfo, fontList, fontResolver, g); } /** diff --git a/src/java/org/apache/fop/render/pcl/PCLRendererConfigurator.java b/src/java/org/apache/fop/render/pcl/PCLRendererConfigurator.java index 1330a46ac..03b60f316 100644 --- a/src/java/org/apache/fop/render/pcl/PCLRendererConfigurator.java +++ b/src/java/org/apache/fop/render/pcl/PCLRendererConfigurator.java @@ -20,6 +20,7 @@ package org.apache.fop.render.pcl; import org.apache.avalon.framework.configuration.Configuration; + import org.apache.fop.apps.FOPException; import org.apache.fop.apps.FOUserAgent; import org.apache.fop.render.PrintRendererConfigurator; @@ -73,5 +74,6 @@ public class PCLRendererConfigurator extends PrintRendererConfigurator { pclRenderer.setPJLDisabled(cfg.getChild("disable-pjl").getValueAsBoolean(false)); } + super.configure(renderer); } } |