I have deployed my Django project to my site registered on DreamHost. I have my styles linked correctly but I can’t seem to get my custom font installed. Here is the file structure in question:
-- static
|-- imported
| |-- fonts
| | |-- SF-Pro-Text-Bold.otf
|
|-- css
| |-- main.css
I would like to retrieve SF-Pro-Text-Bold.otf from my main.css file using the @font-face rule. Here is what I have:
@font-face {
font-family: 'sfpro';
src: local("SF-Pro-Text-Bold"), url("../imported/fonts/SF-Pro-Text-Bold.otf") format("opentype");
}
I have also tried a various number of different combinations of the url() statement (ex. …/…/). I just can’t seem to figure out how to get the font to connect. Any help would be appreciated. If someone has solved this problem before, please let me know.