Jump to content

WidgetFlash: TextField not support anti-alias


photo

Recommended Posts

Data should contain .ttf file with flash font name.

 

Default font names are:

sans.ttf for _sans font

serif.ttf for _serif font

typewriter.ttf for _typewriter font

 

In this case TTF fonts are used in flash rendering.

Link to comment

Ok, this works. But we have some questions:

1. Fonts must placed in Unigine\data\, in this case we can't add fonts in project's repository, how it could be placed in working project folder, for example, in the same folder with flash swf-file?

2. We try to use font Calibri in flash file - regular and italic styles, we select in flash text properties Calibri font and can change it style, but technically this font is separated on calibri.ttf (regular), calibrii.ttf (italic), calibrib.ttf (bold) so in swf we can use only one font style, cause Unigine use only one calibri.ttf file, so how we could combine different font styles?

3. Flash anti-aliased seems badly (and at all different) than the same result via Unigine GUI:

post-151-0-33001000-1303973818_thumb.png

Link to comment

1. You can place fonts in any directory inside the engine data. Engine performs file search inside data directory.

 

2. Different font styles will be available in next SDK update.

 

3. We have updated freetype library and all fonts will look slightly different in comparison with current implementation. I will send updated flashview (with italic and bold fonts support) on days.

Link to comment

74 is CSMTextSettings.

 

"The CSMTextSettings tag turns advanced anti-aliasing on or off for a text field, and can also be used to define quality and options." © SWF File Format Specification Version 10.

Link to comment
×
×
  • Create New...