...
目录:Smartbi_Special_ExtendedFonts.ext\vision\css\ExtendedFonts.css
例如:
代码块 | ||||||
---|---|---|---|---|---|---|
| ||||||
@font-face {
font-family: 'impact-2';
font-style: normal;
font-weight: 400;
src: url(../js/ext/fonts/impact-2.ttf) format('truetype');
}
@font-face {
font-family: 'NotoSansCJK-Regular-1';
font-style: normal;
font-weight: 400;
src: url(../js/ext/fonts/NotoSansCJK-Regular-1.otf) format('opentype');
}
@font-face {
font-family: 'PingFang-Jian-ChangGuiTi-2';
font-style: normal;
font-weight: 400;
src: url(../js/ext/fonts/PingFang-Jian-ChangGuiTi-2.ttf) format('truetype');
} |
信息 |
---|
不同格式的字体,配置css中的format不同; 例如: ttf后缀的字体:format('truetype') otf后缀的字体:format('opentype'); woff后缀的字体:format('woff'); woff2后缀的字体:format('woff2'); eot后缀的字体:format('embedded-opentype'); |
...