'Gotham Book' 字体系列在 Safari 浏览器和 IPhone 设备中不工作

'Gotham Book' font-family not working in Safari browser and IPhone devices

在我的项目中,我需要使用 Gotham Book font-family,我正在使用以下代码:

@font-face {
            font-family: 'Gotham Book';
            src: 
                url('assets/fonts/Gotham-Book.eot'),
                url('assets/fonts/Gotham-Book.eot?#iefix') format('embedded-opentype'),
                url('assets/fonts/Gotham-Book.woff2') format('woff2'),
                url('assets/fonts/Gotham-Book.woff') format('woff'),
                url('assets/fonts/Gotham-Book.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

如果在 android 设备和除 safari 浏览器之外的其他浏览器中完美运行。 请指出我的代码有什么问题。

是什么导致了这个问题?

我也试过使用 Gotham Book svg import,但对我没用。

提前致谢!

尝试添加整个 URL 字体资源。

CSS:-

@font-face {
            font-family: 'Gotham Book';
            src: 
                url('https://www.example.com/assets/fonts/Gotham-Book.eot'),
                url('https://www.example.com/assets/fonts/Gotham-Book.eot?#iefix') format('embedded-opentype'),
                url('https://www.example.com/assets/fonts/Gotham-Book.woff2') format('woff2'),
                url('https://www.example.com/assets/fonts/Gotham-Book.woff') format('woff'),
                url('https://www.example.com/assets/fonts/Gotham-Book.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

谢谢

这是可行的解决方案 CSS :

  @font-face {
  font-family: "gotham";
  src: url('ff/Gotham-Book.woff') format('woff'),
       url('ff/Gotham-Book.woff2') format('woff2'),
       url('ff/Gotham-Book.ttf') format('truetype');
  font-weight: normal;
}

并且请从下面下载字体来替换您现有的字体 URl:

https://drive.google.com/open?id=1pbdpXbPRCJC6Qi-QpNGt7WbLuwtwDRUW

谢谢