Revision: 42207
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 1, 2011 09:19 by NeekGerd
Initial Code
package { import flash.display.MovieClip; import flash.text.*; public class QuickTest extends MovieClip { // Embed the font Verdana [Embed(source="c:/windows/fonts/verdana.ttf", fontFamily="Verdana", embedAsCFF="false")] private var verdana:Class; public function QuickTest () { // Set the font with a TextFormat object var format:TextFormat = new TextFormat( ); format.font = "Verdana"; format.size = 56; var t:TextField = new TextField( ); t.embedFonts = true; // Format text using the font Verdana t.defaultTextFormat = format; t.text = "hello world"; addChild(t); } } }
Initial URL
http://forums.adobe.com/message/3276591#3276591
Initial Description
How to embed a font in a Flash Builder 4* project?
Initial Title
Embed Font in FlashBuilder Project
Initial Tags
Initial Language
ActionScript 3