custom @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;
}
仅当您调整屏幕窗口大小时才会显示文本。
那么请问有什么办法可以解决这个问题吗?
就我而言,问题与不同 Angular 2 模块制作的相同 @font-face 的多次包含有关。请参见:
https://bugs.chromium.org/p/chromium/issues/detail?id=582198#c20 https://bugs.chromium.org/p/chromium/issues/detail?id=582198#c20
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)