html - 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 拒绝它的方式损坏了文件。
这怎么可能?
解决方案
推荐阅读
- html - 在表格单元格内的两个图像之间放置一个 Div
- android - 如果在viewmodel中做简单的操作,我们需要livedata吗
- java - 如何从数组中删除重复元素
- javascript - jQuery函数在第一次点击后停止工作
- java - Spring JPA Hibernate 自动填充审计字段(创建 ID/时间戳等)
- c# - Acumatica - 获取附加文件计数的语法是什么?
- c - 获取使用 GNU 自动工具编译的项目的所有包含列表
- yarnpkg - 得到 gyp 错误
- ios - 如何创建一个将弱自我传递到闭包内部的闭包签名
- java - 如何有条件地执行 Reactor 的 Mono/Flux 供应商算子?