Posted By

linkage on 09/24/08


Tagged


Versions (?)

Last Edited at 09/24/08 09:54am

Viewed 3 times

Embedding Fonts in AS3 - Assets Class


/ Published in: ActionScript 3


  1. package
  2. {
  3. public class Assets
  4. {
  5. [Embed(source='fonts/arial.ttf',
  6. fontName='Arial', unicodeRange='U+0010-U+007F,U+00C4,U+00D6,U+00DC,U+00E4,U+00F6,U+00FC,U+00DF',
  7. mimeType='application/x-font-truetype')]
  8. public static var ArialBold:Class;
  9. [Embed(source='fonts/arialbold.ttf',
  10. fontName='ArialBold', unicodeRange='U+0010-U+007F,U+00C4,U+00D6,U+00DC,U+00E4,U+00F6,U+00FC,U+00DF',
  11. mimeType='application/x-font-truetype')]
  12. public static var Arial:Class;
  13. }
  14. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.