Twitter bootstrap 鲍尔&x2B;引导主题-如何包含字体?

Twitter bootstrap 鲍尔&x2B;引导主题-如何包含字体?,twitter-bootstrap,fonts,gruntjs,bower,Twitter Bootstrap,Fonts,Gruntjs,Bower,我想在我的应用程序中使用引导主题。我通过bower安装了纯js和css: /* part of bower.json */ { "bootstrap.min.css": "https://bootswatch.com/lumen/bootstrap.min.css", "bootstrap.min.js": "https://bootswatch.com/lumen/bootstrap.min.css" } 因此,在bower\u components/bootstrap.min.cs

我想在我的应用程序中使用引导主题。我通过
bower
安装了纯js和css:

/* part of bower.json */
{
  "bootstrap.min.css": "https://bootswatch.com/lumen/bootstrap.min.css",
  "bootstrap.min.js": "https://bootswatch.com/lumen/bootstrap.min.css"
}
因此,在
bower\u components/bootstrap.min.css/index.css
bower\u components/bootstrap.min.js/index.js
中安装了两个文件<
索引的code>font\u-face
选项。css需要
。/font/glyphicon font-name.woff
。因此,引导的所有字体都应该放在
bower\u组件/字体中


当然,我可以安装
bootstrap
bower包,然后在每次
bower安装之后运行
grunt copy
,但这种方法似乎是错误的。如何在我的
/index.html
上执行此字体要求,对吗?

您可以为引导样例主题安装bower软件包-分发软件包。
要安装3.3.5 lumen版本,请在bower.json中添加以下依赖项


复制图像和字体等依赖项的唯一方法是
grunt copy
。您可以向bower添加一个postinstall钩子来复制字体。@AhmadAlfy您的意思是说每个人都是通过bower复制粘贴字体文件来安装bootstrap的吗?这似乎很奇怪。我认为应该有一个干净的解决办法。谢谢
"dependencies": {
 "bootswatch-dist": "3.3.5-lumen"
}