Posted By

Bonky on 06/02/10



Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Gaia Embed Font Asset

 / Published in: ActionScript 3


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.

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

Report this snippet  

You need to login to post a comment.