我的Rails应用程序中的字体来自哪里

时间:2018-10-20 03:57:17

标签: ruby-on-rails

滑轨是否带有自定义字体?如果没有,我的字体从哪里来?

我在CSS中看到此代码:

.hero-unit h1 {
            font-size: 54px;
            font-family: "museo-slab-1","museo-slab-2";
            margin-bottom: 10px;
            z-index: 30;
            position: relative;

    }

但是我看不到font-face声明,也看不到任何app/assets/fonts文件。我看到了:

,并且在main.css

@font-face {
    font-family: 'Pictos';
    src: url('pictos-web.eot');
    src: local('☺'), url('pictos-web.woff') format('woff'), url('pictos-web.ttf') format('truetype'), url('pictos-web.svg#webfontphKv1xv9') format('svg');
    font-weight: normal;
    font-style: normal;
}

我在app/images/new/home/<project>/d.css中看到了这一点:

enter image description here

简而言之,我的字体鲁ck的加载速度很慢,并且在按钮加载后才加载。这是问题。为什么这么慢?为什么我在本地主机上的服务器似乎发出GET请求以获取字体?是在另一个具有不同端口的进程上吗?另外,我的Future PT字体如何加载?我已经可以在font-family下使用它了。该字体在哪里加载?

0 个答案:

没有答案