I use an external swf containing several font classes to download and register fonts for my flash site at runtime. (exported to the Flash IDE library panel, then registered in the script frame)
In this particular case, swf contains several different weights of the same family. eg. roman font, italic font, font, heavy font, etc.
Fonts look fine, but when I try to use fonts, some fontName properties of these fonts are identical. Three appear as Roman, and two as light, and the light is bright. So I went looking for stupid coding errors, but to my horror, I did not find it. The correct font objects loaded in the correct order.
After a little testing, I checked the fonts folder (vista). When I opened the file for Heavy, the title in the font viewer shows Roman; the headers in the font viewer matched what I got in flash. This behavior seems unique to this font.
Since fontName is the only way I know how to assign a TextField font, I am stumped about how I can use this lovely heavy font for my dynamic headers!
This is a type 1 font.
Can anyone suggest a reason, solution, or workaround?
flash fonts actionscript-3 embedding
rur
source share