我试图在我的项目中声明各种形式的相同字体。我想要一个normal
和italic
版本的每个字体类型在相同的BrandonText名称下。一旦我添加了italic
版本,normal
版本就完全被忽略了。斜体覆盖标准?
@font-face {
font-family: 'BrandonText';
src: url('/fonts/BrandonText-Thin.eot?#iefix') format('embedded-opentype'),
url('/fonts/BrandonText-Thin.otf') format('opentype'),
url('/fonts/BrandonText-Thin.woff') format('woff'),
url('/fonts/BrandonText-Thin.ttf') format('truetype'),
url('/fonts/BrandonText-Thin.svg#BrandonText-Thin') format('svg');
font-weight: 100;
font-style: normal;
}
@font-face {
font-family: 'BrandonText';
src: url('/fonts/BrandonText-Thin.eot?#iefix') format('embedded-opentype'),
url('/fonts/BrandonText-Thin.otf') format('opentype'),
url('/fonts/BrandonText-Thin.woff') format('woff'),
url('/fonts/BrandonText-Thin.ttf') format('truetype'),
url('/fonts/BrandonText-Thin.svg#BrandonText-Thin') format('svg');
font-weight: 100;
font-style: italic;
}
这是为什么,有什么办法可以解决这个问题?
什么被忽略,在哪里? – CBroe
@CBroe在我的网站中,使用“BrandonText”(无处不在)的每种字体都是斜体,无论CSS组件中声明了什么。我希望能够在一个字体名称下声明多个权重/样式。 – Crowes
@CBroe我认为他的意思是他所有的副本现在都是斜体。 – Gezzasa