Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Preload a font-file (.ttf)? Re: Preload a font-file (.ttf)?

#72135
noahgelman
Participant

The problem might be the format that you are putting it in the style sheet. Try this:

Code:
@font-face { font-family: navifont; src: url(‘fonts/dreamori.ttf’) format(“truetype”);}

body { font-family: navifont; }

If it still has arbitrary marks, it’s possible that that font file doesn’t support the character you are using.