Fixed mapping of font weights between CSS values and TextAttribute.WEIGHT_*.
Submitted by: Glenn Adams <glenn.at.skynav.com>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@
1099845 13f79535-47bb-0310-9956-
ffa450edef68
return 400;
} else if (weight <= TextAttribute.WEIGHT_SEMIBOLD.floatValue()) {
return 500;
- } else if (weight <= TextAttribute.WEIGHT_BOLD.floatValue()) {
+ } else if (weight < TextAttribute.WEIGHT_BOLD.floatValue()) {
return 600;
- } else if (weight <= TextAttribute.WEIGHT_HEAVY.floatValue()) {
+ } else if (weight == TextAttribute.WEIGHT_BOLD.floatValue()) {
return 700;
- } else if (weight <= TextAttribute.WEIGHT_EXTRABOLD.floatValue()) {
+ } else if (weight <= TextAttribute.WEIGHT_HEAVY.floatValue()) {
return 800;
+ } else if (weight <= TextAttribute.WEIGHT_EXTRABOLD.floatValue()) {
+ return 900;
} else {
return 900;
}
documents. Example: the fix of marks layering will be such a case when it's done.
-->
<release version="FOP Trunk" date="TBD">
+ <action context="Renderers" dev="JM" type="fix" fixes-bug="50899" due-to="Glenn Adams">
+ Fixed mapping of font weights between CSS values and TextAttribute.WEIGHT_*.
+ </action>
<action context="Renderers" dev="JM" type="fix">
AFP GOCA: fonts were not embedded from within AFPGraphics2D.
</action>