Embedding your fonts by code, you enter this code into an fla:
mimeType="application/x-font", unicodeRange="U+0020-U+007E,U+00A1-U+00FF,U+2000-U+206F,U+20A0-U+20CF,U+2100-U+2183,U+0100-U+01FF, U+1E00-U+1EFF;")]
var arialBold:Class;
Font.registerFont(arialBold);
Export your fla preferably with the name of the font and load it into you Flash application. “arialBold” is the identifier used in your classes after loading in your font swf. When you add your font properties to your text field the following code is used:
textField.embedFonts = true;
var textFormat:TextFormat = new TextFormat();
textFormat.font = "arialBold";
textFormat.bold = true;
textFormat.color = 0×000000;
textFormat.size = 12;
textField.selectable = false;
textField.width = 300;
textField.multiline = true;
textField.wordWrap = true;
textField.autoSize = TextFieldAutoSize.LEFT;
textField.defaultTextFormat = textFormat;
textField.text = "Your text here";
To get the specific unicode range for your project you can input your characters and convert them with the help of the Unicode range tool.
These are the most common unicode ranges I use:
//Characters: !"#$%&’()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
U+20-U+7E
//Characters: ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ
U+20,U+A1-U+FF
//Characters: ĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀŁłŃ
//ńŅņŇňʼnŊŋŌōŎŏŐőŒœŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžſ
U+100-U+17F













