actionscript 3 - Embedded fonts in flash with the same fontName property -


I am using several external sections on the runtime to load and register fonts for my Flash site. (Exported to the library panel Flash IDE registered in the frame script)

In this particular case, SWF includes many different loads of the same family as Font roman, font italic, font lights, font heavy, etc ...

fonts appear to register properly, but when I try to use fonts, some of these fonts Font name properties are viewed equally. Three are seen as Roman and two are in the form of light and one is light ... So I went searching for some silly coding errors, but I did not find any for my disappointment. The correct font objects were loading in the correct order.

After a long time of testing, I checked my font folder (Vista). When I opened the file for a heavy title in firefox, Roman shows; I was matching the title given in the font viewer to Flash. This behavior seems unique to this font.

Since FontName is the only way that I know how to specify a font for a TextField, how can I use that furry font for my dynamic

This is a type 1 font

Can anyone recommend a reason, solution or workaround?

Thank you, I think you have the right to this.

Although I had searched for a way to embed the font and set the name.

In the first, I used CrossFont to convert Type 1 PostScript font to .otf

Now available in CS4 using the [embed ()] feature, I was able to use the properties of fonts. Embedded font

In the code below you can see that I set the name "BlaDeeBlaa" and the text format will accept it and display the embedded font. Blade Dibla: class;

  [embed (source = "property / fontfilename.otfo", fontfamily = "bladabala", mime type = "app / x-font")]; Var cf: font = new bladebola (); Var testTxt: TextField = new TextField (); TestTxt.defaultTextFormat = new text format ("blanket", 28,0x000000, true); TestTxt.embedFonts = True; TestTxt.text = font.united font (false) [0]. Fontname; TestTxt.autoSize = "left"; AddChild (testTxt);  

N.B.

I was put on this technique by

, only OpenType (.tf) and TrueType (TTF)

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -