actionscript 3 - AFEFontManager in Adobe AIR. How to embed fonts now? -


i have been building games using flashdevelop flex sdk compiler time, need asc 2.0 adobe air. have migrated it. 1 problem came out, can't find solution for. need embed ttf fonts, used add additional compiler option -managers=flash.fonts.afefontmanager for. in new air sdk next warning:

command line warning: 'compiler.fonts.managers' not supported.

and of course fonts not embed. there solution it?

here's how embed them

[embed(source = "verdana.ttf", fontname = "verdana")] private static var verdana: class; 

well, answer adobe (for unknown reason) have cut font pretranscoding out of asc 2.0, fonts must pretranscoded able embedded code. easiest way use adobe flash pro, embed font , pack swc. attach project somewhow, , register font via font.registerfont(arial); (or other class have attached it). bingo! can use it. second, more complicated, cheaper way use fontswf utility adobe

details can found here http://www.bytearray.org/?p=4789 , here: http://help.adobe.com/en_us/flex/using/ws2db454920e96a9e51e63e3d11c0bf69084-7f5f.html (at bottom of page)


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -