Increase size of the text inside the button

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

I try many ways to inscrease size of the text inside the button, but they still do not work.
Could you please help?
Thank you so much in advance for your help.
Best regards.

for i in range(1, 101):
	var button =
	button.text = str(i)
	button.flat = true
	button.modulate = Color(randi_range(50, 150), randi_range(50, 150), randi_range(50, 150), 255) / 255.0;
	button.size = Vector2(25, 25)
:bust_in_silhouette: Reply From: Zrag

I think the property you are looking for is font_size instead of size.

This font_size uses an int data type.

button.font_size = 25

Thank for your suggestion but it can not run with button.font_size

Mavitaka | 2023-03-18 21:40