【问题标题】:HTML FontFace is working in safari and not in stimulator - Appcelerator TitaniumHTML FontFace 在 safari 中工作,而不是在刺激器中工作 - Appcelerator Titanium
【发布时间】:2013-12-13 11:42:21
【问题描述】:

我有一个使用日文字体的 HTML 页面。它在浏览器中完美运行。当我在 Appcelerator Titanuim 中检查 html5 移动应用程序时,它在刺激器和设备中都失败了。请指导我如何克服这一点。我的语法是:

@font-face {
font-family: 'Japanese';
font-style: normal;
font-weight: normal;
src: local('Japanese'), url('css/Japanese.ttf') format('truetype');
}
.Japanese {
font-family: Japanese, sans-serif;
}

在此先感谢,GANESH M

【问题讨论】:

    标签: html webview titanium appcelerator titanium-mobile


    【解决方案1】:

    检查您的路径。这通常是自定义字体的问题。它需要是本地/相对范围才能跨平台。此外,您可以使用Safari Web Inspector 进行调试,看看它是否正在拾取字体以及是否存在其他问题。

    【讨论】:

      猜你喜欢
      • 2010-10-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-06
      相关资源
      最近更新 更多