hari-kj
08-19-2005, 11:04 AM
Hi all,
This problem would have been already posted somewhere in this forum ( believe me .. I did try to search it but in vain!!).
Ok.. So this is what I have.
this.createTextField("t_txt",2,10,100,20,20)
t_txt.embedFonts = true;
t_txt.type="input"
tf = sf=new TextFormat();
tf.font = "Times New Roman";
t_txt.setTextFormat(tf);
t_txt.text = "asdasdasdΩ";
trace(t_txt.getTextFormat().font);
sf.font = "Symbol";
t_txt.text += "Î";
t_txt.setTextFormat(t_txt.text.length-1, t_txt.text.length, sf);
t_txt.autoSize = true;
As you would see in the output the 'Ω' symbol will not be shown. If I set embedFonts as false, then the 'Î' will not be shown as the 'Î' 'Element of' character in Symbol font, but as 'Î' in Times New Roman font.
I have both the fonts embedded in my library.
Can anyone help me in this one?!!!
I have almost finished my work and this one is hampering my flow :mad:
Help Anyone :rolleyes:
This problem would have been already posted somewhere in this forum ( believe me .. I did try to search it but in vain!!).
Ok.. So this is what I have.
this.createTextField("t_txt",2,10,100,20,20)
t_txt.embedFonts = true;
t_txt.type="input"
tf = sf=new TextFormat();
tf.font = "Times New Roman";
t_txt.setTextFormat(tf);
t_txt.text = "asdasdasdΩ";
trace(t_txt.getTextFormat().font);
sf.font = "Symbol";
t_txt.text += "Î";
t_txt.setTextFormat(t_txt.text.length-1, t_txt.text.length, sf);
t_txt.autoSize = true;
As you would see in the output the 'Ω' symbol will not be shown. If I set embedFonts as false, then the 'Î' will not be shown as the 'Î' 'Element of' character in Symbol font, but as 'Î' in Times New Roman font.
I have both the fonts embedded in my library.
Can anyone help me in this one?!!!
I have almost finished my work and this one is hampering my flow :mad:
Help Anyone :rolleyes: