I also have the font installed on my computer so it should still preview correctly by using src local option but it doesnt work either.
My assets folder is located inside of www for mobile project, so it should be available right??
If I load the font with external source it works fine, I have been using this before but I want to host the fonts within the application in case of offline and cleared cache.
Thanks for the reply, I didn’t notice that css in the localhost url. My assets folder is not located in css.
As you can see in the css, I set the url src like this:
Ok, probably that's the problem
This path is relative to the file you are using it in - that's why it looks for the font in the css folder, as your css file is located there
So make sure to properly define it, relative to your css file or just change it to site root relative: url("/assets/typeface/SFRounded-Bold.ttf")