question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 7 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
afc163commented, Mar 15, 2017

https://github.com/K-walker/iconfont-demo/pull/1

路径错了,roadhog 里 src 下是访问不到的。

0reactions
lock[bot]commented, May 1, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found