0

这可能只是 Firefox 的问题,但无论何时使用 www 访问该站点。作为前缀,即使使用绝对路径,嵌入字体也不会加载。

我不知道是否有办法使用 CSS 来加强这一点,或者 www.dns 存在某种 DNS 问题。我需要编辑,但我完全没有办法解决这个问题。

有人可以分享一些帮助吗?

http://garrettlockhart.com http://www.garrettlockhart.com

@font-face {
    font-family: 'Book';
    src: url('fonts/futurastdbook.eot');
    src: local('☺'), url('fonts/futurastdbook.woff') format('woff'), url('fonts/futurastdbook.ttf') format('truetype'), url('fonts/futurastdbook.svg') format('svg');
}
@font-face {
    font-family: 'Bold';
    src: url('fonts/FuturaStd-Bold.eot');
    src: local('☺'), url('fonts/FuturaStd-Bold.woff') format('woff'), url('fonts/FuturaStd-Bold.ttf') format('truetype'), url('fonts/FuturaStd-Bold.svg') format('svg');
}
@font-face {
    font-family: 'Medium';
    src: url('fonts/futurastdmedium.eot');
    src: local('☺'), url('fonts/futurastdmedium.woff') format('woff'), url('fonts/futurastdmedium.ttf') format('truetype'), url('fonts/futurastdmedium.svg') format('svg');
}
4

1 回答 1

0

Looks like your problem is a cross-domain issue. From the developer tools web console:

[15:16:47.796] downloadable font: download failed (font-family: "Medium" style:normal weight:normal stretch:normal src index:0): bad URI or cross-site access not allowed
source: http://garrettlockhart.com/fonts/futurastdmedium.woff @ http://garrettlockhart.com/style.css

One fix would be to set one or the other url as canonical and use that throughout.

于 2013-08-18T19:28:34.703 回答