Failed to decode download font . OTS parsing error: invalid version tag
See original GitHub issue今天参照ant-design的文档介绍,来定制主题,但是却提示一个错误,如下:
Failed to decode downloaded font: http://localhost:8000/src/assets/fonts/iconfont.woff
OTS parsing error: invalid version tag
Failed to decode downloaded font: http://localhost:8000/src/assets/fonts/iconfont.ttf
OTS parsing error: invalid version tag
我是按照文档来一步步操作的,使用 dva-cli 构建的项目,在 .roadhogrc 中添加 theme.js theme.js:
module.exports = function () {
return {
'@icon-url':'"/src/assets/fonts/iconfont"'
}
}
文档上也是这样说明的,可为什么就是没有效果,我也看了 #1468 这个issues ,情况和我一样,但是我按照他上面的解决方式来操作,还是不行,真的很苦恼,希望能大家能帮我解答下,谢谢了。
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Failed to decode downloaded font, OTS parsing error
Failed to decode downloaded font, OTS parsing error: invalid version tag + rails 4 · It could be a number of things: the...
Read more >Failed to decode downloaded font: OTS parsing error: invalid ...
6.1, I'm having an issue with the font I'm using. I was on 0.2.1 before. Failed to decode downloaded font: OTS parsing error:...
Read more >OTS parsing error: invalid version tag - Laracasts
This seems to work fine on my local environment... Copy Code Failed to decode downloaded font: http://dev.test.com/fonts/glyphicons-halflings-regular ...
Read more >CSS : Failed to decode downloaded font, OTS parsing error
CSS : Failed to decode downloaded font, OTS parsing error : invalid version tag + rails 4 [ Beautify Your Computer ...
Read more >Failed to decode downloaded font: <URL> - Meteor forums
Failed to decode downloaded font: <URL> ... OTS parsing error: invalid version tag OTS parsing error: invalid version tag OTS parsing error: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/K-walker/iconfont-demo/pull/1
路径错了,roadhog 里 src 下是访问不到的。
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.