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

Last input character is still visible even when deleted when using a custom font #153

Open
archiloque opened this issue Apr 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@archiloque
Copy link

I'm a beginner with pixijs and pixijs ui, sorry if I made a beginner mistake and thanks for your work.

Expected Behavior

When deleting the last character of an input field that use a custom font, the character is erased from the input so no character is visible.

Current Behavior

When deleting the last character of an input field that use a custom font, the character is not erased from the input and is still visible even if it has been deleted (if you move out of the input field, the last character is replaced by the placeholder).

Steps to Reproduce

  • Input content in the input
  • Delete all the characters

When not using a custom font the behavior is the expected one.

Environment

@archiloque archiloque added the bug Something isn't working label Apr 14, 2024
@CatchABus
Copy link
Collaborator

You should retry using latest pixi.js version. v8.5.x had a few improvements on measureText that helped solve similar problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants