font-spider
font-spider copied to clipboard
运行font-spider命令失败
目录结构
★ 文件夹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>
请提供可以重现问题的 zip 或者 git 仓库
@aui 重现问题文件
我也遇到了这个问题