Skip to content

fix: Misaligned Caret and selection box for EditText + refactor SpriteFont glyph drawing logic#3058

Open
Eideren wants to merge 2 commits intostride3d:masterfrom
Eideren:edittext_fix
Open

fix: Misaligned Caret and selection box for EditText + refactor SpriteFont glyph drawing logic#3058
Eideren wants to merge 2 commits intostride3d:masterfrom
Eideren:edittext_fix

Conversation

@Eideren
Copy link
Collaborator

@Eideren Eideren commented Feb 6, 2026

PR Details

See title, fairly self explanatory.
image
image
Refactor came out both as a way to understand how font is drawn to figure out what was wrong, but also to improve throughput and fix some of the edge cases that came with the discrepancy in behavior between the different fonts.

Also changed the default selection color to look blue-ish instead of white; the text is already white by default, white on white isn't readable.

Related Issue

fix #2513

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My change requires a change to the documentation.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have built and run the editor to try this change out.

@Eideren Eideren added the area-UI label Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EditText caret is vertically centered when using multiple lines

1 participant