Lade zuerst die Zip-Datei herunter und lege die Schriftdatei(en) neben dein eigenes CSS - der Pfad unten ist ein Platzhalter, den du anpassen musst. Fontasy.de liefert die Schriftdatei selbst nicht live aus.
@font-face {
font-family: 'Raleway Medium';
src: url('/yourfontpath/Raleway-Black.ttf') format('truetype');
font-weight: 900;
font-style: normal;
font-stretch: normal;
}
@font-face {
font-family: 'Raleway Medium';
src: url('/yourfontpath/Raleway-Bold.ttf') format('truetype');
font-weight: 700;
font-style: normal;
font-stretch: normal;
}
@font-face {
font-family: 'Raleway Medium';
src: url('/yourfontpath/Raleway-BoldItalic.ttf') format('truetype');
font-weight: 700;
font-style: italic;
font-stretch: normal;
}
@font-face {
font-family: 'Raleway Medium';
src: url('/yourfontpath/Raleway-ExtraBold.ttf') format('truetype');
font-weight: 800;
font-style: normal;
font-stretch: normal;
}
@font-face {
font-family: 'Raleway Medium';
src: url('/yourfontpath/Raleway-ExtraLight.ttf') format('truetype');
font-weight: 200;
font-style: normal;
font-stretch: normal;
}
@font-face {
font-family: 'Raleway Medium';
src: url('/yourfontpath/Raleway-Italic.ttf') format('truetype');
font-weight: 400;
font-style: italic;
font-stretch: normal;
}
@font-face {
font-family: 'Raleway Medium';
src: url('/yourfontpath/Raleway-Light.ttf') format('truetype');
font-weight: 300;
font-style: normal;
font-stretch: normal;
}
@font-face {
font-family: 'Raleway Medium';
src: url('/yourfontpath/Raleway-MediumItalic.ttf') format('truetype');
font-weight: 500;
font-style: normal;
font-stretch: normal;
}
@font-face {
font-family: 'Raleway Medium';
src: url('/yourfontpath/Raleway-Regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
font-stretch: normal;
}
@font-face {
font-family: 'Raleway Medium';
src: url('/yourfontpath/Raleway-SemiBold.ttf') format('truetype');
font-weight: 600;
font-style: normal;
font-stretch: normal;
}
@font-face {
font-family: 'Raleway Medium';
src: url('/yourfontpath/Raleway-Italic-VariableFont_wght.ttf') format('truetype');
font-weight: 100;
font-style: italic;
font-stretch: normal;
}
.my-text {
font-family: 'Raleway Medium', sans-serif;
} Kopieren Kopiert!
Kommentare