This class is my font library - I embed all fonts that I use in here. The two things to note are the embed code for the fonts and public constants to allow me to access them using FontLibrary.FONT...
This is the main class of my application. Here I create a sample text field and set the text format to one of my embedded fonts.
Easy! You can download all of the source files for this and my other projects from: http://experimentalized.com/blog/sourcezip/Blog.zip.
Thanks,
ReplyDeleteFor the Flash CS5 Use this
[Embed(source="samplefont.ttf",fontName = "Mia's Scriblings ~", mimeType = "application/x-font-truetype",embedAsCFF="false")]
Thanks vijay, good point, I also turn off embedAsCFF when using the 4.5 or later SDKs.
ReplyDeleteok nice
ReplyDeleteThanks for sharing this quality information with us and i like this.
ReplyDelete----
i like play game click jogos online free and play game juegos pou