【问题标题】:@font-face correctly loaded but page do not render in chrome@font-face 已正确加载,但页面未在 chrome 中呈现
【发布时间】:2013-06-11 13:46:16
【问题描述】:

我遇到了一个奇怪的 chrome 问题。

我正在使用 @font-face 加载自定义字体:

@font-face {
font-family: 'AlexBrushRegular';
src: url('AlexBrush-Regular-OTF-webfont.eot');
src: url('AlexBrush-Regular-OTF-webfont.eot?#iefix') format('embedded-opentype'),
     url('AlexBrush-Regular-OTF-webfont.woff') format('woff'),
     url('AlexBrush-Regular-OTF-webfont.ttf') format('truetype'),
     url('AlexBrush-Regular-OTF-webfont.svg#AlexBrushRegular') format('svg');
font-weight: normal;
font-style: normal;

}

我使用了 Font Squirrel Font Face 生成器,在演示页面上效果很好。

但是当我将这个 css 和字体放入我的应用程序(带有 require.js 的单页应用程序)时,页面不会呈现。字体已正确加载(请求为 200 OK):

我认为这是与 chrome 相关的问题,因为它适用于 Safari。

我尝试在没有本地服务器的情况下加载我的页面:file:///www/index.html,它可以在 Chrome 中运行。

任何意见表示赞赏。

谢谢。

蒂博

【问题讨论】:

  • 似乎在当前版本的 Chrome 中已修复

标签: font-face


【解决方案1】:

似乎它在当前版本的 Chrome 中已修复

【讨论】:

    猜你喜欢
    • 2014-11-10
    • 1970-01-01
    • 2011-04-04
    • 2012-11-08
    • 2012-05-26
    • 1970-01-01
    • 2017-12-20
    • 2016-05-30
    • 1970-01-01
    相关资源
    最近更新 更多