aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fonts/FontInfo.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/fonts/FontInfo.java')
-rw-r--r--src/java/org/apache/fop/fonts/FontInfo.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fonts/FontInfo.java b/src/java/org/apache/fop/fonts/FontInfo.java
index 1a04d129a..8f8032767 100644
--- a/src/java/org/apache/fop/fonts/FontInfo.java
+++ b/src/java/org/apache/fop/fonts/FontInfo.java
@@ -389,8 +389,8 @@ public class FontInfo {
}
matchedTriplet = fontLookup(awtFontFamily, awtFontStyle, awtFontWeight);
}
- float awtFontSize = awtFont.getSize2D();
- return getFontInstance(matchedTriplet, (int)(awtFontSize * 1000 + 0.5));
+ int fontSize = Math.round(awtFont.getSize2D() * 1000);
+ return getFontInstance(matchedTriplet, fontSize);
}
/**