0

I am working on a project w/ Django and I am having trouble with fonts. I am able to see the uploaded font on my computer but not on my phone.

This is my file path:

static
 |
 interface
  |
  main.css
  folsom-black.otf

This is my code for my html file:

    <style>
    @font-face {
      font-family: 'Folsom';
      src:
           url("{% static 'interface/folsom-black.otf' %} format('otf')");
    }
    </style>

This is the code for my css file:

    @font-face {
       font-family: 'Folsom';
       src:
         url('../interface/folsom-black.otf') format('otf');
    }
Sunderam Dubey
  • 1
  • 11
  • 20
  • 40
ek2466
  • 35
  • 3

1 Answers1

0

This post might help you out! I am not a professional in Django myself but see if this helps you out!

simon sjöö
  • 365
  • 2
  • 3
  • 17