Change text size inside widget

Hello, I have a widget with text inside, the text is changing after something happened in the game. when the text is changed it’s too small, how do I make it bigger?

Thank you !

6308b1175d657746b2bacaef4856620d

Hey @ilailevavi
I dont know if this fixes your issue, but you can change the text size like in the picture below.
Screenshot_1

2 Likes

you can set the font size by calling Set font on your Text Variable Type:

image

then you can right click on the “In Font Info” and split struct pin to expose more options on the node.

or you can get Make ‘SlateFrontInfo’ node to change the font size.

hope this what you needed.

2 Likes

Hi there @ilailevavi

Hope you’re well!

This topic has been moved from International to Programming & Scripting.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

Thanks and happy developing! :slight_smile:

Hi Thank you very much, but how do i get this text box :sweat_smile:?
right now I see only the text pink variable
5e887e49671aee3804bd2bc0eaaaa78318a4a806

Hi Thank you very much, but how do i get this text box :sweat_smile:?
right now I see only the text pink variable
5e887e49671aee3804bd2bc0eaaaa78318a4a806

Go to your design area for your widget and find the text box you want to change. Then in the very upper part of the details panel, there should be a checkbox to make it a variable.

Once it is a variable you can go back to the graph part of your widget and drag it onto the graph from the variable listing.

1 Like

Thank you, found it but still something doesn’t work…
I don’t have a Target Node that i see in the picture. and when i start the widget its crashing.

Try pulling off of the text block and typing “Get slate font info” and if you can get that, then right click on the exit pin and select “split struct pin.”

Still doesn’t work, but never mind I just used the set font and extend it to set the font there without the make slate font info :slight_smile: