Necroing an old thread, because I have a related question.
I use GetStringWidth to make labels just a little bit wider than the text they contain (
here). Today I noticed that with UI scale other than 1 the width is not correct -- with scale < 1 the text is too wide, it doesn't fit; with scale > 1 the control is too wide. Does GetStringWidth return width in pixels instead of UI units?