Ich versuche, verschiedene Formen der gleichen Schriftart in meinem Projekt zu deklarieren. Ich möchte eine normal
und italic
Version jeder Schriftart unter der gleichen BrandonText Namen. Sobald ich die italic
Version in, die normal
Version wird vollständig ignoriert.Kursiv überschreibt Standard?
@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;
}
Warum ist das, und gibt es eine Möglichkeit, dies zu umgehen?
Was wird ignoriert, wo? – CBroe
@CBroe In meiner Website ist jede Schriftart, die "BrandonText" (die überall sein wird) verwendet kursiv, unabhängig davon, was im CSS für die Website-Komponente deklariert ist. Ich möchte in der Lage sein, mehrere Gewichtungen/Stile unter einem Schriftartnamen zu deklarieren. – Crowes
@CBroe Ich denke, er meint, seine ganze Kopie ist jetzt kursiv. – Gezzasa