引导程序图标字体未加载 [英] bootstrap icon fonts not loading

查看:121
本文介绍了引导程序图标字体未加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用bootstrap v3.3.7(最新版本)设计页面

I am designing a page using bootstrap v3.3.7 (latest version)

问题是字形图标未从本地资源加载,但我从CDN中获取了它们!

The problem is glyphicons don't load from local resource but I have them from cdn!

我在控制台中收到此错误:

I get this error in console:

downloadable font: download failed (font-family: "Glyphicons Halflings" style:normal weight:normal stretch:normal src index:1): status=2147746065 source: http://www/bahasoft/fonts/glyphicons-halflings-regular.woff2

以及其他一种或以下版本的字体:

and for other versions of fonts as well and below one:

downloadable font: no supported format found (font-family: "Glyphicons Halflings" style:normal weight:normal stretch:normal src index:5) source: (end of source list)

但是我确定字体存在并且可以从 http://www/bahasoft/fonts/

but I'm sure the fonts exist and are available at http://www/bahasoft/fonts/

任何想法?

对不起,我的英语不好

推荐答案

检查您的nginx设置.如果有文件类型列表,则还应将以下字体类型插入其中:

Check you nginx settings. If there is a filetype list, you should insert these font types into it also:

location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar|eot|svg|ttf|woff|woff2)$

这篇关于引导程序图标字体未加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆