I am facing an issue with custom fonts. I have provided the custom font files (.ttf) in the public folder so that while building the app, all assets are part of the build. What should be the miss? I am not able to find it. I have checked this How can i fix @fontface issue in my react application? solution not working
@font-face{
font-family: 'FrutigerLTPro';
src:url('./fonts/frutiger/FrutigerLTPro-Black.ttf') format('truetype');
font-weight: 300;
font-style: normal;
font-display: auto;
}
body {
font-family: FrutigerLTPro,inherit auto;
}
webpack:
{
test: /\.(eot|otf|ttf|woff|woff2)$/,
use: 'file-loader',
include: [/fonts/]
},