godot icon indicating copy to clipboard operation
godot copied to clipboard

Scaling issues on Tooltip with stretch_mode = canvas_items

Open eldidou opened this issue 1 year ago • 2 comments

Tested versions

Reproducible: 4.3-rc3, 4.1.2-stable

System information

Godot v4.3.rc3 - Ubuntu 22.04.4 LTS 22.04 - X11 - Vulkan (Forward+) - integrated Intel(R) UHD Graphics (CML GT2) - Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz (12 Threads)

Issue description

When using Project Settings -> Display -> Window -> Strech -> Mode = canvas_items, most UI elements are correctly scaled when the window is resized (they are rendered at the target size, with crisps results on screen). For Tooltip it's not the case. They seems to be rendered at base size and then scaled to the target size, this leads to blurry & pixelated results on screen. It's mostly visible on the font, but it seems to impact the Tooltip panel too.

Screenshot from 2024-08-11 14-42-18

Steps to reproduce

  1. Project Settings -> Display -> Window -> Strech -> Mode = canvas_items
  2. Create a label, with text, and tooltip text
  3. launch it
  4. resize the window
  5. put the mouse on the label
  6. the label looks good, the tooltip looks blurry and pixelated

Minimal reproduction project (MRP)

tooltip_font.zip

eldidou avatar Aug 11 '24 12:08 eldidou

Not sure if this is specific to canvas_scaling or tooltips.

stretch/mode: disabled with scaling:4 shows the same blurry font. And Items in a PopupMenu show up blurry with both methods as well.

Bildschirmfoto vom 2024-10-07 16-28-19

leogott avatar Oct 07 '24 14:10 leogott

try https://github.com/godotengine/godot/issues/54030#issuecomment-2389247901

scgm0 avatar Oct 07 '24 15:10 scgm0

try https://github.com/godotengine/godot/issues/54030#issuecomment-2389247901

I'm not sure how to use the workaround posted there (in particular how to get correct the windows & viewports for tooltips), but I've tried the fix https://github.com/godotengine/godot/pull/97745, and it solves this issues.

eldidou avatar Oct 09 '24 08:10 eldidou

try #54030 (comment)

I'm not sure how to use the workaround posted there (in particular how to get correct the windows & viewports for tooltips), but I've tried the fix #97745, and it solves this issues.

#97745 has been merged and it works out of the box as of 4.4 beta1, so this issue should be closed?

scgm0 avatar Jan 20 '25 22:01 scgm0

It's indeed fixed on my side since 4.4-beta1, with no regression AFAIK, so yes, I think we can close this issue.

eldidou avatar Jan 21 '25 17:01 eldidou

Closing per the above comment.

Calinou avatar Mar 24 '25 18:03 Calinou