Hi,
I am currently using AS3 with CS4 and am a newbie to flash. I want to represent superscript and subscript characters in a text area and one way to do that is to use GG Superscript and GG Subscript fonts. When I include the fonts in my system fonts I am able to see the rendered characters in the text area. However if I reference the embedded font instead of the system font I am no longer able to see the characters with the correct rendering.
I understand there are two approaches for embedding a font
A:
[Embed(systemFont="GG Superscript", fontName="GGS", mimeType="application/x-font")]
private static var EMBEDDED_FONT:String;
or
B: to include the font in the fla library and give it a corresponding name.
However both approaches result in failures as the text area is unable to find the embedded font. I have also set the embedFonts property to true for the textfield in the TextArea.
The htmlText to be rendered in the textArea is as follows:
ƒ(x) = ½ x<font face="GGS">2</font><br/>
The above htmlText doesn’t render correctly.
However if I change the htmlText to :
ƒ(x) = ½ x<font face="GG Superscript">2</font><br/>
This renders fine.
Please advise.