@ font-face在移动设备(特别是Android)中不起作用

时间:2019-02-03 14:53:58

标签: android css mobile fonts font-face

我已经完全尝试了所有内容,并在网上进行了至少一个小时的研究,非常感谢您的帮助。

我的字体有以下代码。在台式机上显示正常,但在移动设备上显示不正常:

    @font-face {
    font-family: 'Helvetica Neue';
    src: url('/fonts/HelveticaNeue.woff2') format('woff2'),
         url('/fonts/HelveticaNeue.woff') format('woff'),
         url('/fonts/HelveticaNeue.ttf') format('truetype'),
         url('/fonts/HelveticaNeue.eot?#iefix') format('embedded-opentype'),
         url('/fonts/HelveticaNeue.eot'),
         url('/fonts/HelveticaNeue.svg#HelveticaNeue') format('svg');
         font-weight: normal;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('/fonts/HelveticaNeue-Medium.woff2') format('woff2'),
         url('/fonts/HelveticaNeue-Medium.woff') format('woff'),
         url('/fonts/HelveticaNeue-Medium.ttf') format('truetype'),
         url('/fonts/HelveticaNeue-Medium.eot?#iefix') format('embedded-opentype'),
         url('/fonts/HelveticaNeue-Medium.eot'),
         url('/fonts/HelveticaNeue-Medium.svg#HelveticaNeue-Medium') format('svg');
         font-weight: 500;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('/fonts/HelveticaNeue-Bold.woff2') format('woff2'),
         url('/fonts/HelveticaNeue-Bold.woff') format('woff'),
         url('/fonts/HelveticaNeue-Bold.ttf') format('truetype'),
         url('/fonts/HelveticaNeue-Bold.eot?#iefix') format('embedded-opentype'),
         url('/fonts/HelveticaNeue-Bold.eot'),
         url('/fonts/HelveticaNeue-Bold.svg#HelveticaNeue-Bold') format('svg');
         font-weight: bold;
}

有什么我想念的吗?

谢谢

1 个答案:

答案 0 :(得分:1)

您的字体url(“ https://fosoa.ie/fonts/HelveticaNeue.woff2”)被禁止错误!检查权限是否正确。