我試圖在我的項目中聲明各種形式的相同字體。我想要一個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