Return to Starling Playback Library

GAFTextField text size

Questions related to Starling playback library should be asked here.

GAFTextField text size

Postby smival » December 23rd, 2016, 5:39 am

Hi,
I need to resize text inside a text's border (or resize border to text, something like autoSize method from native TextField),
but I was surpriced when textWidth and textHeight always return border size,
not a real text sizes.

How can I take text's sizes?
User avatar
smival
 
Posts: 5
Joined: August 26th, 2016, 12:24 am

Re: GAFTextField text size

Postby Alexey Finkilshtein » December 23rd, 2016, 8:43 am

Hi,

Unfortunately it is not supported yet. Sorry.
User avatar
Alexey Finkilshtein
 
Posts: 408
Joined: May 21st, 2014, 6:53 am

Re: GAFTextField text size

Postby smival » December 26th, 2016, 6:04 am

ok we could avoid this approach and use native TextField like a copy of GAFTextField and get actual size of text.
To make it we should take some text formats from GAFTextField, is it possible?

GAFTextField extends feathers.controls.TextInput and TextInput has TextFormat in latest version, but latest version needs Starling 2.0
User avatar
smival
 
Posts: 5
Joined: August 26th, 2016, 12:24 am

Re: GAFTextField text size

Postby Alexey Finkilshtein » December 27th, 2016, 2:02 pm

Sorry, but it is impossible with current starling library and I think it could be available in GAF for Starling 2.0 in future.
User avatar
Alexey Finkilshtein
 
Posts: 408
Joined: May 21st, 2014, 6:53 am

Return to Starling Playback Library

Who is online

Users browsing this forum: No registered users and 1 guest