I want to add a custom font which is in my local machine, I added the font in the src/fonts/ the font file itself is named DIN Next LT Arabic Regular.ttf.
I found one of the answers suggested that I should put it that way and add this line to my index.css file
@font-face {
font-family: 'DIN Next LT Arabic Regular' !important;
src: local('DIN Next LT Arabic Regular'), url('./fonts/DIN Next LT Arabic Regular.ttf') format('truetype');
}
and then import the index.css to my index.js which was already done by the create-react-app command.
But it's not working, and I have no clue why.
PS: I have a .env file which contains this line NODE_PATH=src/ to not use relative path.