font-spider icon indicating copy to clipboard operation
font-spider copied to clipboard

运行font-spider命令失败

Open jinx92 opened this issue 8 years ago • 3 comments

目录结构

★ 文件夹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>

jinx92 avatar Dec 26 '17 08:12 jinx92

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

aui avatar Dec 26 '17 09:12 aui

@aui 重现问题文件

jinx92 avatar Dec 26 '17 09:12 jinx92

我也遇到了这个问题

ziguangweb avatar Apr 20 '18 06:04 ziguangweb