I am struggling to load custom fonts from a local directory. Can someone provide assistance?
Below is the code I am currently using:
@font-face {
font-family: 'My Custom Font';
src: url('./fonts/MyCustomFont.eot');
src: url('./fonts/MyCustomFont.eot?#iefix') format('embedded-opentype'),
url('./fonts/MyCustomFont.woff') format('woff'),
url('./fonts/MyCustomFont.ttf') format('truetype'),
url('./fonts/MyCustomFont.svg#my_custom_font_otbook') format('svg');
font-weight: normal;
font-style: normal;
}
and utilizing it as
.btn {
font-family: 'My Custom Font', sans-serif;
max-width: 100%;
width: 20%;
height: 8%;
}