I am trying to use CSS @font-face in meteor, but for some reason it isn't working:
@font-face {
font-family: printFailed;
src:
url("../public/fonts/wlm_print_failed.ttf"),
url("../public/fonts/wlm_print_failed.eot");
}
I've checked my paths and spelling.
When I inspect the element in the browser it appears that the filepaths and names are correct, but that the browser is substituting a generic font instead of the intended custom font.
Any pointers? Thanks.
Just use /
as everything in public
becomes the root directory from the point of view of the web browser:
@font-face {
font-family: printFailed;
src:
url("/fonts/wlm_print_failed.ttf"),
url("/fonts/wlm_print_failed.eot");
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With