Jump to content

WidgetFlash: TextField not support anti-alias


photo

Recommended Posts

Posted

This is a big problem - menu's on flash seems very-very bad, cause text have no anti-alias. Is it can be added?

Posted

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.

Posted

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

Posted

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.

Posted

italic postfix is "i"

bold postfix is "b"

bold italic postfix is "ib"

 

default: arial.ttf

italic: ariali.ttf

bold: arialb.ttf

bold italic: arialib.ttf

flashview.zip

Posted

It's good news, thank.

 

I have some flash warning:

FlashCharacterSprite::parseTags(): unknown tag: 74 12

What is it could be?

Posted

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.

×
×
  • Create New...