Return to Snippet

Revision: 27324
at June 2, 2010 13:26 by Bonky


Initial Code
//use the source fount at the URL; it's formatted nicely and shows examples of using CSS or TextFormat

Initial URL
http://www.gaiaflashframework.com/wiki/index.php?title=Runtime_Font_Loading

Initial Description
Make sure your embedded fonts are not PostScript. They won\'t work. To obtain the proper font name for your css, use\r\ntrace(Gaia.api.getAvailableFonts());\r\ntrace(Gaia.api.getFontName(\\\"NameOfFontClassAsReportedAbove\\\"));\r\nYou have to embed separate fonts for the Bold or Italic versions, and sometimes they use the same font name as the regular version. For these you have to specify \\\"font-style: italic;\\\" or \\\"font-weight:bold;\\\".\r\nAlso make sure that there are no text fields in your swf which are embedding your font because the font name will conflict with your imported one.

Initial Title
Gaia Embed Font Asset

Initial Tags

                                

Initial Language
ActionScript 3