processing / processing4-javafx

JavaFX library for Processing 4
13 stars 5 forks source link

Pixels trail behind text after importing JavaFX. #16

Open Buggem opened 2 years ago

Buggem commented 2 years ago
## Description

Making a new line in Linux once imported JavaFX results in strange dots/pixels on the new line after that.

Expected Behavior

No strange suspect white pixels.

Current Behavior

Strange suspect white pixels!

Every time I make a new line there is a pixel there.

Here's a screenshot. Screenshot from 2022-03-28 17-05-55

The white pixels are too small to be part of the font, and the one on line 2 looks a bit different (more, white, less pixels) to the others.

This is super strange, I'd like to know more about this issue.

If you want further info about the bug (logs, videos, etc.) I'll be happy to provide :)

Steps to Reproduce

  1. Download the JavaFX library if needed.

Your Environment

Possible Causes / Solutions

benfry commented 2 years ago

Very odd; my guess is that the import triggers accelerated hardware rendering, which is sometimes less accurate, or at least can cause minor subpixel shifts like this. (The tiny pixels come from the vertical caret line extending just slightly too far, so when a line of code is redrawn, it's not fully cleared.)