Set the Inter font using @font-face
Using Fonts
Set Inter font
Report a typo
Fill in the gaps with the relevant elements
@font-face {
font-family: 'Inter';
src: font-url('fonts/Inter-Regular.ttf');
font-weight: ;
}
@font-face {
font-family: 'Inter';
src: font-url('fonts/Inter-Light.ttf');
font-weight: ;
}
@font-face {
font-family: 'Inter';
src: font-url('fonts/Inter-Bold.ttf');
font-weight: ;
}
@font-face {
font-family: 'Inter';
src: font-url('fonts/Inter-Medium.ttf');
font-weight: ;
}Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.