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

Final letter in a text button sometimes clips (Godot 4.1.3, iPhone 6/7/8) #85449

Closed
scripturial opened this issue Nov 28, 2023 · 4 comments
Closed

Comments

@scripturial
Copy link

scripturial commented Nov 28, 2023

Godot version

4.1.3

System information

Sonoma 14.0, Xcode 15.0.1, iPhone (see below)

Issue description

Rendering text inside a text button clips the final letter, but leaves a space where the letter should be:

I am trying to narrow down which devices this is a problem for. Based on user feedback it appears that the problem might be limited to iOS 15, or specific older models of iPhone with a 750 wide screen resolution.

Steps to reproduce

It is difficult to reproduce. The problem occurs on:

  • iPhone 7 / iOS 15.8

The problem does not occur on:

  • iPhone XS Max / iOS 17.1.1
  • iPhone 14 / iOS 17.1.1
  • iPhone SE 3rd gen / 16.6
  • iPad Air 5th gen / 16.5

The app runs with the older "compatibility engine". And the buttons are using a google font embedded into the app for cross phone/os consistency and for support for characters in other languages, if it matters, the font is NotoSans.

Minimal reproduction project

Unfortunately I have not yet been able to reproduce the problem, I am still investigating.

@scripturial
Copy link
Author

In case it's helpful to note, clipping and overrun behavior is disabled. So it is strange that any letter would disappear like this.

image

@scripturial
Copy link
Author

scripturial commented Nov 28, 2023

It doesn't seem likely, but I can't help but wonder if this issue with determining the text width needed for the button is connected somehow to #80907

There shouldn't be any fallback occurring in the example screenshot as the characters should all be in the default google noto font (but I do have a fallback font for asian characters)

@Rindbee
Copy link
Contributor

Rindbee commented Jan 18, 2024

Possibly a duplicate of #81624.

@Calinou
Copy link
Member

Calinou commented Jan 18, 2024

Thanks for the report! Consolidating in #81624, as this is likely due to the same cause.

If you can compile from source, you could test #87335 to make sure it fixes the issue on your end.

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

No branches or pull requests

4 participants