Author: jeremias
Date: Mon Sep 12 01:21:34 2005
New Revision: 280288

URL: http://svn.apache.org/viewcvs?rev=280288&view=rev
Log:
Font weights 800 and 900 would not cause a bold font.

Modified:
    
xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java

Modified: 
xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java
URL: 
http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java?rev=280288&r1=280287&r2=280288&view=diff
==============================================================================
--- 
xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java
 (original)
+++ 
xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java
 Mon Sep 12 01:21:34 2005
@@ -135,7 +135,10 @@
                 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);



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to