GUI text font size

(Using 4.6 Beta20)

I’ve done a forums search but want to make double sure I’m not missing anything.

Basically I have a text object on a canvas (just some crappy text with keyboard instructions). When I resize the window, I want the text size to change accordingly, so that it still takes up the same proportion of the screen. Currently this doesn’t happen - the font stays the same size, resulting in tiny-looking text on a large window, to text which almost fills the screen width on a small window.

Am I correct in thinking there’s no way of automating this? It struck me as a little odd as pretty much everything else in the GUI can be made to resize with the window.

If you use the “best fit” you can achieve this:

1833458--117592--upload_2014-11-3_6-59-49.png

or if using a bitmap font use a content size fitter on text and or a canvas scaler on canvas

In beta 21, use a CanvasScaler on the Canvas and set it to scale with screen size.