My current font files are stored in the public/fonts/
directory.
The CSS files can be found in public/css/
.
Despite trying various path and css adjustments, I am unable to successfully load the fonts...
@font-face {font-family: trend_sans_oneregular;
src: url('TrendSans-One-webfont.eot'),
url('TrendSans-One-webfont.eot?#iefix') format('embedded-opentype'),
url('TrendSans-One-webfont.woff') format('woff'),
url('TrendSans-One-webfont.ttf') format('truetype'),
url('TrendSans-One-webfont.svg#trend_sans_oneregular') format('svg');
font-weight: normal;
font-style: normal; }
.btn {border:none;font-family:trend_sans_oneregular!important}
Could the issue lie with the file paths? Do I need to make any additional configurations for an Express app?
//Setting the fav icon and static folder
app.use(express.favicon());
app.use(express.static(config.root + '/public'));