我了解我可以通过html/css导入我的字体,但我想知道这是否可行。
谢谢!
谢谢!
@font-face
规则引用字体才能在页面中使用它们。例如,在清单文件中:CACHE MANIFEST
# v1
index.html
style.css
GenBasR-webfont.eot
GenBasR-webfont.woff
GenBasR-webfont.ttf
GenBasR-webfont.svg
在style.css文件中:
@font-face {
font-family: 'GentiumBasicRegular';
src: url('GenBasR-webfont.eot');
src: url('GenBasR-webfont.eot?iefix') format('eot'),
url('GenBasR-webfont.woff') format('woff'),
url('GenBasR-webfont.ttf') format('truetype'),
url('GenBasR-webfont.svg#webfontLblSsz1O') format('svg');
font-weight: normal;
font-style: normal;
}
body {
font-family: 'GentiumBasicRegular';
}