css - How to add multiple font files for the same font? - Stack Overflow

PHOTO EMBED

Tue Feb 08 2022 15:05:36 GMT+0000 (Coordinated Universal Time)

Saved by @Minhow #javascript #css

@font-face {
    font-family: "DejaVu Sans";
    src: url("fonts/DejaVuSans.ttf");
}
@font-face {
    font-family: "DejaVu Sans";
    src: url("fonts/DejaVuSans-Bold.ttf");
    font-weight: bold;
}
@font-face {
    font-family: "DejaVu Sans";
    src: url("fonts/DejaVuSans-Oblique.ttf");
    font-style: italic, oblique;
}
@font-face {
    font-family: "DejaVu Sans";
    src: url("fonts/DejaVuSans-BoldOblique.ttf");
    font-weight: bold;
    font-style: italic, oblique;
}
content_copyCOPY

https://stackoverflow.com/questions/2436749/how-to-add-multiple-font-files-for-the-same-font