3 Replies Latest reply on Mar 16, 2010 1:52 AM by giuseppesorce

    problem with embed font such us some character

    giuseppesorce Level 1

      Hi  i have some problems with a font.


      I have this simple code.



      package {

      import flash.text.AntiAliasType;

      import flash.text.TextFormat;

      import flash.text.TextFieldAutoSize;

      import flash.text.TextField;

      import flash.text.Font;

      import flash.display.Sprite;



      [SWF(backgroundColor="#FFFFFF", frameRate="31", width="700", height="500")]

      public class ExampleEmbedFontKoz extends Sprite {

      private var mytextfield : TextField;

      private var format : TextFormat;


      public function ExampleEmbedFontKoz() {






      private function createText() : void {


      mytextfield= new TextField();


      mytextfield.embedFonts= true;

      mytextfield.width= 400;

      mytextfield.border= true;

      mytextfield.autoSize= TextFieldAutoSize.LEFT;

      mytextfield.antiAliasType= AntiAliasType.ADVANCED;


      format= new TextFormat();


      mytextfield.defaultTextFormat= format;

      mytextfield.text= "try embed KozgoPro and write puntualitation.\n i can't view this letters: è é ò à ù ì";










      package {



      public class AssetManager {

      [Embed(source="KozGoPro-Regular.otf", fontName="KozGoPro-Regular",mimeType="application/x-font", fontWeight="normal", fontStyle="normal" , unicodeRange="U+0021-U+007B,U+0400-U+04CE,U+2000-U+206F,U+20A0-U+20CF,U+2100-U+2183,U+002 0-U+002F,U+0030-U+0039,U+003A-U+0040,U+0041-U+005A,U+005B-U+0060,U+0061-U+007A,U+007B-U+00 7E")]

      public static  var kozgopro : Class;





      when i write character such us è ò à ì don't view nothing.


      I put file online... [url]http://depositfiles.com/en/rmv/6620791594111859[/url]