godot
godot copied to clipboard
Different TextEdit preview on HiDPI display
Godot version: 3.2 RC3
OS/device including version: macOS 10.15.2
Issue description:
On a HiDPI display, the TextEdit preview in the editor is inconsistent with the actual one:

As in the screenshot:
- Only three lines are displayed, while it's all four lines when running
- The display area (highlighted) shown in the minimap only covers two lines, but it's actually three lines shown in the preview, and four when running
Steps to reproduce:
- Open Godot on a HiDPI display, or set the Display Scale to 200%
- Create a new scene, and add a TextEdit
- Make four lines of text, and set the size to 120x75, you can also turn on the minimap
Minimal reproduction project: TextEditTest.zip
Can anyone still reproduce this bug in Godot 3.2.3 or any later release?
Yes. I can still reproduce this in 3.2.4 beta4.
With seamless display scaling implemented, it's now also seen on a low-dpi monitor if there's any hidpi monitor available.

Can reproduce in 3.5, but cannot reproduce in 4.0 or later using DisplayScale set to 200%.