|
@@ -75,23 +75,27 @@
|
|
|
src: url('/@/assets/font/douyuFont.otf');
|
|
src: url('/@/assets/font/douyuFont.otf');
|
|
|
font-weight: normal;
|
|
font-weight: normal;
|
|
|
font-style: normal;
|
|
font-style: normal;
|
|
|
|
|
+ font-display: swap; // [perf-base-v1] 字体加载期间先用系统字体渲染,避免不可见文本阻塞
|
|
|
}
|
|
}
|
|
|
@font-face {
|
|
@font-face {
|
|
|
font-family: 'numberFont';
|
|
font-family: 'numberFont';
|
|
|
src: url('/@/assets/font/yjsz.TTF');
|
|
src: url('/@/assets/font/yjsz.TTF');
|
|
|
font-weight: normal;
|
|
font-weight: normal;
|
|
|
font-style: normal;
|
|
font-style: normal;
|
|
|
|
|
+ font-display: swap; // [perf-base-v1] 字体加载期间先用系统字体渲染,避免不可见文本阻塞
|
|
|
}
|
|
}
|
|
|
@font-face {
|
|
@font-face {
|
|
|
font-family: 'electronicFont';
|
|
font-family: 'electronicFont';
|
|
|
src: url('/@/assets/font/DS-DIGIT.TTF');
|
|
src: url('/@/assets/font/DS-DIGIT.TTF');
|
|
|
font-weight: normal;
|
|
font-weight: normal;
|
|
|
font-style: normal;
|
|
font-style: normal;
|
|
|
|
|
+ font-display: swap; // [perf-base-v1] 字体加载期间先用系统字体渲染,避免不可见文本阻塞
|
|
|
}
|
|
}
|
|
|
@font-face {
|
|
@font-face {
|
|
|
font-family: 'ysbtFont';
|
|
font-family: 'ysbtFont';
|
|
|
src: url('/@/assets/font/ysbtFont.ttf');
|
|
src: url('/@/assets/font/ysbtFont.ttf');
|
|
|
font-weight: normal;
|
|
font-weight: normal;
|
|
|
font-style: normal;
|
|
font-style: normal;
|
|
|
|
|
+ font-display: swap; // [perf-base-v1] 字体加载期间先用系统字体渲染,避免不可见文本阻塞
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|