For my game command console: I would like to resize it so that the letters aren't bigger than the screen

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Juan

I’d like to know how to resize my command box, which is comprised of a line Edit, and RichTexture label. At the moment the command box and letters are huge, and I want them to be smaller and to fit within my window.

Would appreciate some advise on how to change the settings of the boxes, and letters.

Thanks again

:bust_in_silhouette: Reply From: rossunger

To change the size of the letters you need to either apply a new theme with a font that has a smaller font-size, or apply a style-override to the font parameter of the LineEdit.

You can also override the default font for your entire project in project settings under “custom font”.

If you want the font to adjust automatically as you resize the control, then you’d probably need to write some clever code that sets the font size in relation to the Control’s rect_size.y parameter.