Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 windows上的as3/AIR HTMLLoader蹩脚字体_Actionscript 3_Air - Fatal编程技术网

Actionscript 3 windows上的as3/AIR HTMLLoader蹩脚字体

Actionscript 3 windows上的as3/AIR HTMLLoader蹩脚字体,actionscript-3,air,Actionscript 3,Air,我正在为windows开发一个空中多点触控应用程序。整个starling/flash功能都很好。现在我尝试在窗口中加载一个HTML文件 index.html文件直接位于air根目录中,尽管htmlstyle.css @font-face { font-family: 'C'; src: url('font/FrutigerLTCom-Condensed.ttf') } @font-face { font-family: 'B';

我正在为windows开发一个空中多点触控应用程序。整个starling/flash功能都很好。现在我尝试在窗口中加载一个HTML文件

index.html文件直接位于air根目录中,尽管htmlstyle.css

@font-face { font-family: 'C';
             src: url('font/FrutigerLTCom-Condensed.ttf') 
             }

@font-face { font-family: 'B';
             src: url('font/FrutigerLTCom-BoldCn.ttf') 
            }
好的,在我的本地浏览器中看起来不错。在air应用程序中,文本看起来磨损和像素化

问题出在哪里?HTMLLoader没有找到字体,或者存在一些安全问题吗


关于

我曾经在StageWebView上遇到过质量问题。创建新的StageWebView对象时,可能会使用StageWebView(true)。这将使用设备的默认浏览器(例如Chrome或FireFox)来呈现html内容,而不是AIR的内置引擎。

我没有使用webview,我使用类似html=new HTMLLOader()的HTMLLOader,然后使用addChild(html)添加它;