How to change LineEdit size so it fits the letter

Godot Version

v4.2.2

Question

Hey geys,

I am trying to modify the LineEdit box so it fits the letter (this case question mark) without changing its font size

Capture

Just like it happens on Label

capture2

I am making a game for phone where the user has to put in some letters. however I cant fit the sentences on the screen size if I don’t use the space efficiently.

anyone have the idea how might i do this?

add CenterContainer as the parent of this LineEdit
lineedit
the settings for line edit:
image
image

1 Like

Thanks a lot man, it worked like a charm!

1 Like