diff options
-rw-r--r-- | src/java/org/apache/fop/render/rtf/TextAttributesConverter.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java b/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java index 99bc5eede..ec8abe7b8 100644 --- a/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java +++ b/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java @@ -135,7 +135,10 @@ class TextAttributesConverter { RtfFontManager.getInstance().getFontNumber(font.fontFamily)); rtfAttr.setHalfPoints(RtfText.ATTR_FONT_SIZE, font.fontSize); - if (font.fontWeight == Constants.EN_700) { + if (font.fontWeight == Constants.EN_700 + || font.fontWeight == Constants.EN_800 + || font.fontWeight == Constants.EN_900) { + //Everything from 700 and above is declared as bold rtfAttr.set("b", 1); } else { rtfAttr.set("b", 0); |