Localize fonts

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2021-12-16 17:55:16 +05:30
parent ed27e6b8e4
commit 3d7e509f9a
43 changed files with 378 additions and 77 deletions

59
src/font-face.css Normal file
View file

@ -0,0 +1,59 @@
/* ---- ROBOTO ---- */
@font-face {
font-family: 'Roboto';
src: url(../public/res/fonts/roboto/Roboto-Light.ttf);
font-weight: 300;
font-display: swap;
}
@font-face {
font-family: 'Roboto';
src: url(../public/res/fonts/roboto/Roboto-Regular.ttf);
font-weight: 400;
font-display: swap;
}
@font-face {
font-family: 'Roboto';
src: url(../public/res/fonts/roboto/Roboto-Medium.ttf);
font-weight: 500;
font-display: swap;
}
@font-face {
font-family: 'Roboto';
src: url(../public/res/fonts/roboto/Roboto-Bold.ttf);
font-weight: 600;
font-display: swap;
}
/* ---- Inter ---- */
@font-face {
font-family: 'Inter';
src: url(../public/res/fonts/inter/Inter_vf_slant_weight.ttf);
font-weight: 300;
font-display: swap;
}
@font-face {
font-family: 'Inter';
src: url(../public/res/fonts/inter/Inter_vf_slant_weight.ttf);
font-weight: 380;
font-display: swap;
}
@font-face {
font-family: 'Inter';
src: url(../public/res/fonts/inter/Inter_vf_slant_weight.ttf);
font-weight: 400;
font-display: swap;
}
@font-face {
font-family: 'Inter';
src: url(../public/res/fonts/inter/Inter_vf_slant_weight.ttf);
font-weight: 500;
font-display: swap;
}
@font-face {
font-family: 'Inter';
src: url(../public/res/fonts/inter/Inter_vf_slant_weight.ttf);
font-weight: 600;
font-display: swap;
}