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

Jay Bhaskar duke at openjdk.java.net
Sun Feb 13 07:47:04 UTC 2022


On Sun, 13 Feb 2022 07:35:32 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)
>
> Jay Bhaskar has updated the pull request incrementally with one additional commit since the last revision:
> 
>   adjust thickness

The dash case (--)  also works without looping 

<img width="628" alt="Screenshot 2022-02-13 at 1 13 51 PM" src="https://user-images.githubusercontent.com/6468850/153743964-647e00cd-1dab-4ffb-9686-8a04c5844b98.png">

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

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


More information about the openjfx-dev mailing list