diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-09-12 08:21:34 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-09-12 08:21:34 +0000 |
commit | c1e2d2af42a624b91b950b9849b252262fcc6db1 (patch) | |
tree | 7ededdba70a37c446872a7881dbdb7205353dfe7 | |
parent | a1c7c4a1a07a266b9be7bf0feb9e33c79bc56d0e (diff) | |
download | xmlgraphics-fop-c1e2d2af42a624b91b950b9849b252262fcc6db1.tar.gz xmlgraphics-fop-c1e2d2af42a624b91b950b9849b252262fcc6db1.zip |
Font weights 800 and 900 would not cause a bold font.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280288 13f79535-47bb-0310-9956-ffa450edef68
-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); |