Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button text gets cut off when using canvas_items stretch mode and font oversampling #97417

Closed
romlok opened this issue Sep 24, 2024 · 1 comment · Fixed by #95511
Closed

Button text gets cut off when using canvas_items stretch mode and font oversampling #97417

romlok opened this issue Sep 24, 2024 · 1 comment · Fixed by #95511
Assignees
Milestone

Comments

@romlok
Copy link
Contributor

romlok commented Sep 24, 2024

Tested versions

Reproducible in: v4.3.stable.official [77dcf97]

System information

Godot v4.3.stable - Debian GNU/Linux trixie/sid trixie - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 7600 (RADV NAVI33) - AMD Ryzen 5 7600 6-Core Processor (12 Threads)

Issue description

If a Button is sized as small as it can be (eg. when using "center" anchors), the final character of the text gets cut off at certain scaling values when using canvas_items scaling and font oversampling.

Seems similar to #81624, but now happening only when there isn't any "extra" space around the text.

Screenshot_20240924_181621
Screenshot_20240924_181639

Steps to reproduce

  1. Set project's stretch mode to canvas_items
  2. Create a button, give it some text, and center it using anchors
  3. Run the project/scene
  4. 👀 Scale the window

Minimal reproduction project (MRP)

qui.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants