JDK-8116329 : Proportional Gradient Paint does not align correctly to the Text node
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx2.0.2
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2011-10-31
  • Updated: 2015-06-17
  • Resolved: 2011-12-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
fx2.1Fixed
Related Reports
Relates :  
Description
Proportional gradient should map onto the bounds of the shape that the gradient fills.  Text does not do that!  It maps to the bounds of each individual (internal) draw call.  This happens when text is multi-line and has complex layout of any kind.  This is particularly noticeable when line length vary, tabs are used etc.
Comments
To verify that the fix work run example code on jfx 2.1 promoted build 4 vs. older builds.
27-03-2012

Fix as of: changeset: 15040:f72789c97c05 2.1-graphics-scrum build #147 Dec1, 2011
02-12-2011

After applying fix, the gradient of the rectangle in the background matches the text in the foreground.
02-12-2011

Screen shot of text node render on top of rectangle both with identical proportional gradient. The text and its decoration should not be visible.
30-11-2011

The underlying cause of these two issue are similar
01-11-2011