aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-08-05 07:57:36 +0000
committerJeremias Maerki <jeremias@apache.org>2008-08-05 07:57:36 +0000
commit62b516407e4988dc0535a4cf5e1be1bbd5886fc5 (patch)
tree2d596b1ea9f6b13c510075af039a5de54a79cb76 /src
parent504455cacaeafbbeae9eacb72a9977050e381b0e (diff)
downloadxmlgraphics-fop-62b516407e4988dc0535a4cf5e1be1bbd5886fc5.tar.gz
xmlgraphics-fop-62b516407e4988dc0535a4cf5e1be1bbd5886fc5.zip
Fixed small mistake with weight adjustment on font lookup. Weight 400 was slipping through the cracks.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@682618 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/fonts/FontInfo.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fonts/FontInfo.java b/src/java/org/apache/fop/fonts/FontInfo.java
index f576c8208..2bcc6d7e1 100644
--- a/src/java/org/apache/fop/fonts/FontInfo.java
+++ b/src/java/org/apache/fop/fonts/FontInfo.java
@@ -436,7 +436,7 @@ public class FontInfo {
FontTriplet key = null;
String f = null;
int newWeight = weight;
- if (newWeight < 400) {
+ if (newWeight <= 400) {
while (f == null && newWeight > 100) {
newWeight -= 100;
key = createFontKey(family, style, newWeight);