Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行font-spider命令失败 #148

Open
jinx92 opened this issue Dec 26, 2017 · 3 comments
Open

运行font-spider命令失败 #148

jinx92 opened this issue Dec 26, 2017 · 3 comments

Comments

@jinx92
Copy link

jinx92 commented Dec 26, 2017

目录结构

★ 文件夹css

★ ★ font.css

★ 文件夹font

★ ★ futurabqbook.ttf

★ index.html

<body>
	<div class="home">
		<h1>123456789</h1>
	</div>
</body>
/*声明 WebFont*/
@font-face {
  font-family: 'pinghei';
  src: url('../font/futurabqbook.ttf');
  src:
    url('../font/futurabqbook.eot?#font-spider') format('embedded-opentype'),
    url('../font/futurabqbook.woff') format('woff'),
    url('../font/futurabqbook.ttf') format('truetype'),
    url('../font/futurabqbook.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}
/*使用选择器指定字体*/
.home h1, .demo > .test {
    font-family: 'pinghei';
}

然后在当前文件里里面运行font-spider ./*.html 出现 <web font not found>

@aui
Copy link
Owner

aui commented Dec 26, 2017

请提供可以重现问题的 zip 或者 git 仓库

@jinx92
Copy link
Author

jinx92 commented Dec 26, 2017

@aui 重现问题文件

@ziguangweb
Copy link

我也遇到了这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants