So I have a production project in laravel. The problem I'm facing is when I upload custom font to public directory (ttf, woff, woff2) and then in .css
file specify @font
family it does show up in CSS when I inspect element as font-family
but font does not actually change.
@font-face {
src: url('/../fonts/custom-font.woff');
font-family: "custom-font" !important;
}
h1, h2, h3, h4, h5, h6 {
font-family: "custom-font" !important;
custom-font.woff
but in the h1 rules you callcustom-font
... So I would expect this to not work. they need to be the same if you want this to work.