Ich habe eine neue Schriftart heruntergeladen und speichert in ${RootFolder}/font
.
In styles.css Datei schrieb ich:CSS @ font-face: Wie man es richtig benutzt?
@font-face {
font-family: roboto;
url('../fonts/Roboto-Italic.ttf');
}
h1 {
font-family: roboto;
}
In html Ich schrieb:
<h1> hello </h1>
Und ich sehe noch nicht, dass Schriftart geändert hat.
Weißt du, was ich falsch gemacht habe?