Open Santarii opened 2 years ago
I should add that the behaviour is also inconsistent from the last version I was using of Processing 3, 3.5.4.
For certain values of scale (in particular for the value I was using in a project I was trying to port over) you get very different results.
Removing the scale incrementing line and initialising scale to 1080:
Processing 4:
Processing 3:
Processing 3 was much closer to correct for this specific scale value but it still had the same issues for other values.
Probably the same issue: https://github.com/processing/processing4/issues/700
Expected Behavior
If I use the scale function and then use the textSize function to reverse that scaling, I expect to get the same result as just rendering the text without any scaling.
Current Behavior
In the default renderer the text is lower than it should be when scaled up then sized back down. In P2D the space between characters also changes.
Steps to Reproduce
This code renders text, and each frame increases the scale, but the scale is exactly reversed with the textSize function. If the bug didn't exist, this would look like stationary unchanging text, however this is not the case.
Your Environment
Possible Causes / Solutions
It seems to not just be small values in textSize, even reasonable values mess with the alignment a bit, though very small values have a more significant effect.