godot icon indicating copy to clipboard operation
godot copied to clipboard

Different TextEdit preview on HiDPI display

Open timothyqiu opened this issue 5 years ago • 3 comments

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:

screenshot

As in the screenshot:

  1. Only three lines are displayed, while it's all four lines when running
  2. 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:

  1. Open Godot on a HiDPI display, or set the Display Scale to 200%
  2. Create a new scene, and add a TextEdit
  3. Make four lines of text, and set the size to 120x75, you can also turn on the minimap

Minimal reproduction project: TextEditTest.zip

timothyqiu avatar Jan 26 '20 13:01 timothyqiu

Can anyone still reproduce this bug in Godot 3.2.3 or any later release?

KoBeWi avatar Dec 15 '20 01:12 KoBeWi

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.

截屏2020-12-15 上午9 58 06

timothyqiu avatar Dec 15 '20 02:12 timothyqiu

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

kitbdev avatar May 01 '24 17:05 kitbdev