自定义@ font-face不加载chrome(Chrome自定义字体无法渲染)

Dny*_*dge 5 html5 fonts google-chrome css3 font-face

自定义@font-face不加载chrome(chrome自定义字体无法渲染)使用CSS自定义字体

@font-face {
    font-family:'gotham-rounded-medium';
    src:url('fonts/gothumrounded_medium/gotham-rounded-medium.eot');
    src:url('fonts/gothumrounded_medium/gotham-rounded-medium.eot?#iefix')format("embedded-opentype"),
        url('fonts/gothumrounded_medium/gotham-rounded-medium.woff')format("woff"),
        url('fonts/gothumrounded_medium/gotham-rounded-medium.ttf')format("truetype"),
        url('fonts/gothumrounded_medium/gotham-rounded-medium.svg')format("svg");
    font-weight:400;
    font-style:normal
}

.custom_font{
   font-family:'gotham-rounded-medium', arial, sans-serif;
}
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

仅在调整屏幕窗口大小时才会显示文本.

那么请问有什么可以解决这个问题吗?

mar*_*ozw 4

就我而言,问题与不同 Angular 2 模块制作的相同 @font-face 的多次包含有关。请参见:

https://bugs.chromium.org/p/chromium/issues/detail?id=582198#c20