aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdrian Cumiskey <acumiskey@apache.org>2009-03-20 16:27:10 +0000
committerAdrian Cumiskey <acumiskey@apache.org>2009-03-20 16:27:10 +0000
commit6dfb589f8b4217771daedbac864ad31cf67e6f24 (patch)
tree9b04b453a983ef46138d7d15c9c3ddc9338c5553 /src
parent4360e0417498d2032809797b29040b26ec0f2dd2 (diff)
downloadxmlgraphics-fop-6dfb589f8b4217771daedbac864ad31cf67e6f24.tar.gz
xmlgraphics-fop-6dfb589f8b4217771daedbac864ad31cf67e6f24.zip
Moved the font cache change check from outside PrintRendererConfigurator to inside the FontInfoConfigurator.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@756583 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/fonts/FontInfoConfigurator.java7
-rw-r--r--src/java/org/apache/fop/render/PrintRendererConfigurator.java5
2 files changed, 6 insertions, 6 deletions
diff --git a/src/java/org/apache/fop/fonts/FontInfoConfigurator.java b/src/java/org/apache/fop/fonts/FontInfoConfigurator.java
index 07407e9ae..c97901163 100644
--- a/src/java/org/apache/fop/fonts/FontInfoConfigurator.java
+++ b/src/java/org/apache/fop/fonts/FontInfoConfigurator.java
@@ -100,7 +100,12 @@ public class FontInfoConfigurator {
// Update referenced fonts (fonts which are not to be embedded)
fontManager.updateReferencedFonts(fontInfoList);
-
+
+ // Update font cache if it has changed
+ if (fontCache != null && fontCache.hasChanged()) {
+ fontCache.save();
+ }
+
if (log.isDebugEnabled()) {
log.debug("Finished font configuration in "
+ (System.currentTimeMillis() - start) + "ms");
diff --git a/src/java/org/apache/fop/render/PrintRendererConfigurator.java b/src/java/org/apache/fop/render/PrintRendererConfigurator.java
index 26c34585e..67dda0354 100644
--- a/src/java/org/apache/fop/render/PrintRendererConfigurator.java
+++ b/src/java/org/apache/fop/render/PrintRendererConfigurator.java
@@ -100,17 +100,12 @@ public class PrintRendererConfigurator extends AbstractRendererConfigurator
}
boolean strict = factory.validateUserConfigStrictly();
- FontCache fontCache = fontManager.getFontCache();
//Read font configuration
FontInfoConfigurator fontInfoConfigurator
= new FontInfoConfigurator(cfg, fontManager, fontResolver, listener, strict);
List/*<EmbedFontInfo>*/ fontInfoList = new java.util.ArrayList/*<EmbedFontInfo>*/();
fontInfoConfigurator.configure(fontInfoList);
-
- if (fontCache != null && fontCache.hasChanged()) {
- fontCache.save();
- }
return fontInfoList;
}