/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
package { public class Assets { [Embed(source='fonts/arial.ttf', fontName='Arial', unicodeRange='U+0010-U+007F,U+00C4,U+00D6,U+00DC,U+00E4,U+00F6,U+00FC,U+00DF', mimeType='application/x-font-truetype')] public static var ArialBold:Class; [Embed(source='fonts/arialbold.ttf', fontName='ArialBold', unicodeRange='U+0010-U+007F,U+00C4,U+00D6,U+00DC,U+00E4,U+00F6,U+00FC,U+00DF', mimeType='application/x-font-truetype')] public static var Arial:Class; } }