Hallo,
hat sich bei Contao 4 bzgl. des Einbindens von Schriften irgendetwas geändert?
Kann ich mir nicht vorstellen und dennoch - ich gehe so vor:
Code:
@font-face {
font-family: 'public_sansregular';
src: url('../../files/fonts/publicsans-regular-webfont.woff2') format('woff2'),
url('../../files/fonts/publicsans-regular-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'public_sansitalic';
src: url('../../files/fonts/publicsans-italic-webfont.woff2') format('woff2'),
url('../../files/fonts/publicsans-italic-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'public_sansbold';
src: url('../../files/fonts/publicsans-bold-webfont.woff2') format('woff2'),
url('../../files/fonts/publicsans-bold-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
body {
background-color: aquamarine;
font-size: 3em;
font-family: 'public_sansregular;
}
und nix geht, die Schrift wird nicht dargestellt. ... mache ich etwas falsch?
Lesezeichen