aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/render/pdf/fonts/LazyFont.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/render/pdf/fonts/LazyFont.java')
-rw-r--r--src/org/apache/fop/render/pdf/fonts/LazyFont.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/apache/fop/render/pdf/fonts/LazyFont.java b/src/org/apache/fop/render/pdf/fonts/LazyFont.java
index 80faae2de..e9fc2caee 100644
--- a/src/org/apache/fop/render/pdf/fonts/LazyFont.java
+++ b/src/org/apache/fop/render/pdf/fonts/LazyFont.java
@@ -33,6 +33,7 @@ public class LazyFont extends Font implements FontDescriptor {
private void load(){
if(! isMetricsLoaded){
+ isMetricsLoaded = true;
try{
FontReader reader = new FontReader(metricsFileName);
reader.useKerning(useKerning);
@@ -41,7 +42,6 @@ public class LazyFont extends Font implements FontDescriptor {
if(realFont instanceof FontDescriptor){
realFontDescriptor = (FontDescriptor) realFont;
}
- isMetricsLoaded = true;
// System.out.println("Metrics " + metricsFileName + " loaded.");
} catch (Exception ex) {
MessageHandler.error("Failed to read font metrics file "