hello all
I'm trying to use an external font in flash
I used the Html txt method
The code works in html file
code:
PHP Code:
<style type="text/css">p{color:red;text-align:center;font-family: "kofa";font-size: 50px;}@font-face {font-family: "kofa";src: url(kofa.ttf) format("truetype");}</style><p>hello world</p>
But it doesn't work in flash
code:
PHP Code:
onFrame (1) {
stop();
//---------------- simple text works fine -------------------------
this.createTextField("simple_txt", this.getNextHighestDepth(),0,30,200,50);
simple_txt.html = true;
simple_txt.htmlText = "<b> this is simple text </b>";
//---------------- external font text is not working --------------------
this.createTextField("external_font", this.getNextHighestDepth(),0,90,200,50);
external_font.html = true;
external_font.htmlText='<style type="text/css">p{color:red;text-align:center;font-family: "kofa";font-size: 50px;}@font-face {font-family: "kofa";src: url(kofa.ttf) format("truetype");}</style><p>hello world</p>'
}
Any Help
swishmax file:
https://app.box.com/s/h14q8278n33pmtykmlpvndl9c7ondafj