Return to Starling Playback Library

Gaf textfields

Questions related to Starling playback library should be asked here.

Gaf textfields

Postby Dev Xpinator » December 10th, 2014, 2:09 am

Hello,
i installed the new GAF converter and updated the GAF api to the latest.
followed your dynamic text field example, and it dosn't work for me.
im getting errors, because the code treat my text field as GAFImage, and i can't use it as a dynamic text field.

what am i doing wrong?
User avatar
Dev Xpinator
 
Posts: 42
Joined: October 22nd, 2014, 1:16 am

Re: Gaf textfields

Postby Dev Xpinator » December 10th, 2014, 3:02 am

my fault - i forgot to choose the nesting option on conversion :mrgreen:
BTW, i don't see an option for this in the CLI command line. is there?
User avatar
Dev Xpinator
 
Posts: 42
Joined: October 22nd, 2014, 1:16 am

Re: Gaf textfields

Postby vadym.mitin » December 10th, 2014, 3:34 am

I have updated the CLI document.
User avatar
vadym.mitin
 
Posts: 254
Joined: December 4th, 2013, 8:00 am

Re: Gaf textfields

Postby Dev Xpinator » December 11th, 2014, 12:10 am

thanks :D

it seems that i can only use system fonts, and not embedded custom fonts, or am i doing something wrong again?
User avatar
Dev Xpinator
 
Posts: 42
Joined: October 22nd, 2014, 1:16 am

Re: Gaf textfields

Postby Ivan Avdeenko » December 11th, 2014, 12:47 am

You can use embedded fonts. lt should be embedded like this:
Code: Select all
[Embed(source="fontsDirectory/SomeFont.ttf", fontName="fontName", mimeType="application/x-font", embedAsCFF="false")]
private var embeddedFontClass: Class;

No more actions you need to do. Starling GAF library automatically will use embedded fonts.
User avatar
Ivan Avdeenko
 
Posts: 30
Joined: June 6th, 2014, 12:22 am

Return to Starling Playback Library

Who is online

Users browsing this forum: No registered users and 2 guests