We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我的字体定义如下
@font-face { font-family: 'Han Sans'; font-style: normal; font-weight: 100; src: url('../fonts/SourceHanSansSC-ExtraLight.eot'); src: url('../fonts/SourceHanSansSC-ExtraLight.eot?#font-spider') format('embedded-opentype'), url('../fonts/SourceHanSansSC-ExtraLight.woff') format('woff'), url('../fonts/SourceHanSansSC-ExtraLight.ttf') format('truetype'), url('../fonts/SourceHanSansSC-ExtraLight.svg') format('svg'); } @font-face { font-family: 'Han Sans'; font-style: normal; font-weight: 200; src: url('../fonts/SourceHanSansSC-Light.eot'); src: url('../fonts/SourceHanSansSC-Light.eot?#font-spider') format('embedded-opentype'), url('../fonts/SourceHanSansSC-Light.woff') format('woff'), url('../fonts/SourceHanSansSC-Light.ttf') format('truetype'), url('../fonts/SourceHanSansSC-Light.svg') format('svg'); } @font-face { font-family: 'Han Sans'; font-style: normal; font-weight: 400; src: url('../fonts/SourceHanSansSC-Regular.eot'); src: url('../fonts/SourceHanSansSC-Regular.eot?#font-spider') format('embedded-opentype'), url('../fonts/SourceHanSansSC-Regular.woff') format('woff'), url('../fonts/SourceHanSansSC-Regular.ttf') format('truetype'), url('../fonts/SourceHanSansSC-Regular.svg') format('svg'); } @font-face { font-family: 'Han Sans'; font-style: normal; font-weight: 600; src: url('../fonts/SourceHanSansSC-Medium.eot'); src: url('../fonts/SourceHanSansSC-Medium.eot?#font-spider') format('embedded-opentype'), url('../fonts/SourceHanSansSC-Medium.woff') format('woff'), url('../fonts/SourceHanSansSC-Medium.ttf') format('truetype'), url('../fonts/SourceHanSansSC-Medium.svg') format('svg'); }
然后body的css规则是
html, body { font-family: "Gotham light","Helvetica Neue", Helvetica, Arial, "Han Sans", sans-serif; ... }
在上述规则中,我并没有定义font-weight,似乎字蛛在font-weight未定义的时候应该是使用的font-weight的默认
font-weight:400
但是我有很多代码里面是使用的
font-family: inherit;(并没有显性的写出来) font-weight: 100/200/600;
来修改使用的font-weight的,而这部分规则即使css中有@font-face仍然不能被字蛛process。
The text was updated successfully, but these errors were encountered:
如果没有声明 weight,会使用默认值 400 的字体
Font-Spider 暂时不支持继承的字体
Sorry, something went wrong.
对不支持的特性显示警告信息#44
35cb5a6
fixbug #62 #59 #44
abf573e
No branches or pull requests
我的字体定义如下
然后body的css规则是
在上述规则中,我并没有定义font-weight,似乎字蛛在font-weight未定义的时候应该是使用的font-weight的默认
但是我有很多代码里面是使用的
来修改使用的font-weight的,而这部分规则即使css中有@font-face仍然不能被字蛛process。
The text was updated successfully, but these errors were encountered: