首页 > 解决方案 > TTF 字体文件可在 Chrome 上运行,但在尝试下载时已损坏

问题描述

我找到了一个网站,您可以在其中使用它的字体,它会完美运行:

@font-face {
    src: url('http://www.fontface.co.il/fonts/alpharegularwebfont.ttf');
}

但是当你尝试下载.ttf文件时,“Windows Font Viewer”会抛出一个错误:The requested file X.ttf is not a valid font file.

似乎他们以 Chrome 接受它但 Windows 拒绝它的方式损坏了文件。
这怎么可能?

标签: htmlcssfontsfont-facetruetype

解决方案


推荐阅读