Skip to content
New issue

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

多字重版本的字体处理不正确 #32

Closed
idiotWu opened this issue Jun 7, 2015 · 1 comment
Closed

多字重版本的字体处理不正确 #32

idiotWu opened this issue Jun 7, 2015 · 1 comment
Labels

Comments

@idiotWu
Copy link

idiotWu commented Jun 7, 2015

比如我想同时引入 kaigen-gothicRegularBold 版本,CSS 书写如下:

@font-face {
  font-family: 'Kai Gen Gothic';
  src: url('../font/KaiGenGothicCN-Regular.eot');
  src:
    url('../fonts/KaiGenGothicCN-Regular.eot?#font-spider') format('embedded-opentype'),
    url('../fonts/KaiGenGothicCN-Regular.woff') format('woff'),
    url('../fonts/KaiGenGothicCN-Regular.ttf') format('truetype'),
    url('../fonts/KaiGenGothicCN-Regular.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Kai Gen Gothic';
  src: url('../font/KaiGenGothicCN-Bold.eot');
  src:
    url('../fonts/KaiGenGothicCN-Bold.eot?#font-spider') format('embedded-opentype'),
    url('../fonts/KaiGenGothicCN-Bold.woff') format('woff'),
    url('../fonts/KaiGenGothicCN-Bold.ttf') format('truetype'),
    url('../fonts/KaiGenGothicCN-Bold.svg') format('svg');
  font-weight: bold;
  font-style: normal;
}

但是只有后书写的规则会被识别,只生成了 KaiGenGothicCN-Bold 的子集。

@aui
Copy link
Owner

aui commented Jun 7, 2015

确认bug,下一版本修复。暂时可以设置不同的 font-family 名称解决

@aui aui added the bug label Jun 7, 2015
@aui aui mentioned this issue Jul 25, 2015
@aui aui closed this as completed Jul 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants