当我的flash项目移动到flex时,我的字体被搞砸了。他们不再出现(奇怪的是我没有收到任何错误信息)。字体无法正常工作(flex)
请 - 可以somone帮我解决这个问题吗?谢谢。
[Embed(source="../../../../../assets/fonts/Orbitron/TTF/orbitron-medium.ttf", fontFamily="Orbitron", fontWeight="medium", mimeType='application/x-font', embedAsCFF='false')]
public static const OrbitronMedium:Class;
private var font:String;
font = new Library.OrbitronMedium();
private var statsTxtFormat:TextFormat;
statsTxtFormat = new TextFormat();
statsTxtFormat.font = font;
statsTxtFormat.bold = false;
statsTxtFormat.size = 14;
statsTxtFormat.color = 0xfdfea1;
statsTxtFormat.align = TextFormatAlign.RIGHT;
statsTxtFormat.kerning = true;
statsTxtFormat.letterSpacing = 1;
尝试将字体加载到未嵌套得太深的目录中。你可以试着用一种字体来确定这是否是一个可行的解决方案。 – Angelo