aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}