diff options
-rw-r--r-- | src/java/org/apache/fop/svg/ACIUtils.java | 8 | ||||
-rw-r--r-- | status.xml | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/svg/ACIUtils.java b/src/java/org/apache/fop/svg/ACIUtils.java index 995908116..92dd3f16f 100644 --- a/src/java/org/apache/fop/svg/ACIUtils.java +++ b/src/java/org/apache/fop/svg/ACIUtils.java @@ -152,12 +152,14 @@ public final class ACIUtils { return 400; } else if (weight <= TextAttribute.WEIGHT_SEMIBOLD.floatValue()) { return 500; - } else if (weight <= TextAttribute.WEIGHT_BOLD.floatValue()) { + } else if (weight < TextAttribute.WEIGHT_BOLD.floatValue()) { return 600; - } else if (weight <= TextAttribute.WEIGHT_HEAVY.floatValue()) { + } else if (weight == TextAttribute.WEIGHT_BOLD.floatValue()) { return 700; - } else if (weight <= TextAttribute.WEIGHT_EXTRABOLD.floatValue()) { + } else if (weight <= TextAttribute.WEIGHT_HEAVY.floatValue()) { return 800; + } else if (weight <= TextAttribute.WEIGHT_EXTRABOLD.floatValue()) { + return 900; } else { return 900; } diff --git a/status.xml b/status.xml index 4e671c6a0..ea011a164 100644 --- a/status.xml +++ b/status.xml @@ -59,6 +59,9 @@ documents. Example: the fix of marks layering will be such a case when it's done. --> <release version="FOP Trunk" date="TBD"> + <action context="Renderers" dev="JM" type="fix" fixes-bug="50899" due-to="Glenn Adams"> + Fixed mapping of font weights between CSS values and TextAttribute.WEIGHT_*. + </action> <action context="Renderers" dev="JM" type="fix"> AFP GOCA: fonts were not embedded from within AFPGraphics2D. </action> |