Friday 10 June 2011

AS3 - HTML Superscript characters

In order to use superscript characters you need to embed the superscript font and call the font face when needed.


Register font



[Embed(source="/../resource/font/ggsupersans.ttf", 
mimeType="application/x-font-truetype", 
fontName="SuperSans", 
fontWeight="normal", 
fontStyle="regular", 
advancedAntiAliasing="true" )]
private var SuperSans : Class;


Font.registerFont( SuperSans );


Using Superscript Characters


<font face="SuperSans" >&#174;</font>


Download
www.fahimchowdhury.com/files/ggsupersans.ttf

No comments:

Post a Comment