eugene.litvinov Posted April 27, 2011 Share Posted April 27, 2011 This is a big problem - menu's on flash seems very-very bad, cause text have no anti-alias. Is it can be added? Link to comment
frustum Posted April 27, 2011 Share Posted April 27, 2011 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
eugene.litvinov Posted April 28, 2011 Author Share Posted April 28, 2011 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: Link to comment
frustum Posted April 29, 2011 Share Posted April 29, 2011 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
frustum Posted April 29, 2011 Share Posted April 29, 2011 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 Link to comment
eugene.litvinov Posted April 29, 2011 Author Share Posted April 29, 2011 It's good news, thank. I have some flash warning: FlashCharacterSprite::parseTags(): unknown tag: 74 12 What is it could be? Link to comment
frustum Posted April 29, 2011 Share Posted April 29, 2011 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
Recommended Posts