Browse Source

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
pull/31/head
Jeremias Maerki 18 years ago
parent
commit
cfee67f579
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      src/java/org/apache/fop/render/rtf/TextAttributesConverter.java

+ 4
- 1
src/java/org/apache/fop/render/rtf/TextAttributesConverter.java View File

@@ -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);

Loading…
Cancel
Save