On 06/03/2011 04:42, Glenn Adams wrote:
Hi Glenn,
I was just catching up on old e-mails and noticed no one replied to
this. I have added your patch to the patch queue so its not lost:
https://issues.apache.org/bugzilla/show_bug.cgi?id=50899
Thanks for the suggestion.
Thanks,
Chris
--- a/src/java/org/apache/fop/svg/NativeTextPainter.java
+++ b/src/java/org/apache/fop/svg/NativeTextPainter.java
@@ -187,12 +187,14 @@ public abstract class NativeTextPainter extends
StrokingTextPainter {
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;
}