You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/09/12 10:21:37 UTC
svn commit: r280288 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java
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: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org