In my library I have a symbol that is a font and it is exported. The name of it is ‘cn’.
In action script how do I set a TextFields font to use this embedded font?
In my library I have a symbol that is a font and it is exported. The name of it is ‘cn’.
In action script how do I set a TextFields font to use this embedded font?
this.createTextField("my_txt", 0, 0, 0, 0, 0);
my_txt.autoSize = "left";
my_txt.embedFonts = true;
var my_fmt = new TextFormat("cn");
my_txt.setNewTextFormat(my_fmt);
my_txt.text = "Hola!";
:: Copyright KIRUPA 2024 //--