可能的原因是我的其他字体无法加载。这是我的 fonts.css 文件
@font-face {
font-family: "Source Sans Pro";
src: url(../assets/fonts/sans/SourceSansPro-Regular.ttf) format("truetype");
font-style: normal;
@apply .font-normal;
}
@font-face {
font-family: "Source Sans Pro";
src: url(../assets/fonts/sans/SourceSansPro-Light.ttf) format("truetype");
font-style: normal;
@apply .font-light;
}
@font-face {
font-family: "Source Sans Pro";
src: url(../assets/fonts/sans/SourceSansPro-SemiBold.ttf) format("truetype");
font-style: normal;
@apply .font-semibold;
}
@font-face {
font-family: "Source Sans Pro";
src: url(../assets/fonts/sans/SourceSansPro-Italic.ttf) format("truetype");
font-style: normal;
@apply .font-normal;
}
@font-face {
font-family: "Source Sans Pro";
src: url(../assets/fonts/sans/SourceSansPro-Bold.ttf) format("truetype");
font-style: normal;
@apply .font-bold;
}
@font-face {
font-family: "Source Sans Pro";
src: url(../assets/fonts/sans/SourceSansPro-Black.ttf) format("truetype");
font-style: normal;
@apply .font-black;
}
但是粗体只会显示不正常的字体
看看只有黑色字体加载/粗体..