RFR: 8280020: Underline and line-through not straight in WebView

yosbits duke at openjdk.java.net
Fri Feb 11 13:43:12 UTC 2022


On Thu, 10 Feb 2022 11:36:38 GMT, Jay Bhaskar <duke at openjdk.java.net> wrote:

> Issue: The end point of  line in drawLinesForText , add thickness to the endPoint.y(). In this case origin which is start point and the end point would not be same, and line would be drawn not straight.
> Solution: Do not add thickness to the y position of end point of line.
> Start Point(x,y) ----------End Point(x + width, 0)

The discussion points are
* Whether to use a simplified implementation that satisfies some of the specifications.
* Whether to assume that lines will be broken.
* * If you use the same origin, there is a waste that the line will be overlapped and the load will increase.

Probably the following computational load

* O(1/2*n*(n+1))

-------------

PR: https://git.openjdk.java.net/jfx/pull/731


More information about the openjfx-dev mailing list