Download the zip file first and place the font file(s) next to your own CSS - the path below is a placeholder you'll need to adjust. Fontasy.de does not serve the font file itself live.
@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;
} Copy Copied!
Comments