[Request] Width of any text expression

Discussion and feedback on Construct 2

Post » Sun Jul 14, 2013 6:43 am

Right now the only way to get a width of a text is using the action .textwidth from Text objects, my suggestion as the title says is be able to get a width of any text(from variables to common strings) you want like for example: textwidth("test text",10,"arial"), first the text you want to get the width then the size of the font and final the font type, this action could be added in the system at the Math or Text section, this is useful when for example you want to change a size of a object based on a text that is changed according to an event and you can't or don't want to use a text object for that, there are many other things this could be used to, this was just a single example and obviously there are other things that have priority to be added but I guess depending on the effort to make that possible would be a good idea
B
32
S
6
G
5
Posts: 437
Reputation: 6,119

Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests